0

In IntelliJ or in this example WebStorm, it shows these icons next to the function or other code autocompletions:
Example autocompletion when typing "spy" in WebStorm it shows spyOn as the first result and then spyOnProperty with a green arrow pointing upwards on spyOnProperty and a red one pointing downwards on spyOnAllFunctions. This repeats further down the list.

You can see a green arrow pointing upwards on some items and a red one pointing downwards on the one below. Also the first entry has a grey star. Some items have no such prefix/indicator at all.

What do these mean?

WebStorm 2025.2.0.1

1 Answer 1

4

I found the solution in this official IntelliJ documentation (WebStorm): It's a featured called Sort suggestions based on Machine Learning.

Here is the documentation for IntelliJ Idea on it.

You can also disable these markers if you do not like them in the settings for code completion: settings screen for code completion

The grey star for the "most relevant item" also belongs it to it, BTW.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.