I generally like having JavaScript autocomplete suggestions in VS Code, but it drives me nuts that it automatically selects the first option when I am writing functions.
For instance, I want to call a function named Setup
which IntelliSense may or may not yet know about. So I type in Setup
and autocomplete suggests SecurityPolicyViolationEvent
. When I type (
it automatically takes SecurityPolicyViolationEvent
and puts it in.
I have to type Setup
then press Escape
then press (
(opening parenthesis / round brace).
The auto suggestions are at times helpful but I want to choose to select them when I want them, not "by default". How can I set VS Code so that I still get the suggestions but it doesn’t select the first one automatically?
2
Answers
Put the following in your settings.json file:
The setting’s description:
Have a look at this setting:
Setting it to
never
for example will not select anything in the suggestion box. Ctrl+Space would then select the top entry.