ken
ken

Reputation: 9013

vscode chooses unusual option for autocomplete

While using the latest version of Visual Studio Code I am editing a JavaScript file and often want to log output to the console. I created a user snippet to make this easier to autocomplete but I've found that the default option I get in my autocomplete is the red highlighted option below (instead of the green which is my snippet):

enter image description here

I'm wondering two things:

  1. Where is this "non-standard" autocomplete coming from? Can I remove it?
  2. How does vscode determine which of the matches will be the default, and can I influence it to choose my snippets first?

Upvotes: 6

Views: 1026

Answers (1)

Johannes Rieken
Johannes Rieken

Reputation: 3611

You can add this "editor.snippetSuggestions": "top" to your configuration to ensure snippets are always sorted on top

Upvotes: 6

Related Questions