5

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?
Ashish Bahl
  • 1,482
  • 1
  • 18
  • 27
ken
  • 8,763
  • 11
  • 72
  • 133

1 Answers1

5

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

Johannes Rieken
  • 3,401
  • 1
  • 17
  • 10
  • Excellent, but I wonder why in the new version that has changed. Prior to version 1.8 snippets worked as they should. – Yurii Holskyi Feb 09 '17 at 15:00
  • 1
    Yeah, we have been exploring to remember and pre-select the suggestion that has been inserted most recently. You can tweak that via `"editor.suggestSelection"` – Johannes Rieken Mar 01 '18 at 13:34