Visual Studio Code - how to put custom snippets at the top of the list

I created a JavaScript snippet in Visual Studio Code to speed up the method call a bit console.log()

(a line of code that I write very often).

"Console Log": {
    "prefix": "log",
    "body": [
        "console.log($0);"
    ],
    "description": "JavaScript Console.log()"
}

      

The custom snippet works, but when I type log

into the editor, my custom snippet is at the bottom of the list.

'log' is at the bottom of the list

Is there a way to make this the first sentence and not the last?

+3


source to share


1 answer


Try to install:

"editor.snippetSuggestions": "top"

      



enter image description here

+5


source







All Articles