intellisensevisual-studio-codecode-snippets

How can I make VS Code suggest snippets at the top of the suggestion list?


I want to use code snippets in VS Code. But when I type, for example, for in javascript file, the IntelliSense doesn't suggest snippet "for-loop" - I need to manually scroll the dropdown and select it. Is there any way to make VS Code to suggest snippets at first?

UPD: I have found the person with same problem, but he has no answers - link


Solution

  • You need to use editor.snippetSuggestions config option with "top" value. Please, see Customizing IntelliSense article for more tips and tricks.