I have created a JavaScript 'user snippet' in the Visual Studio Code to make it slightly faster to call the console.log()
method (a line of code that I write very frequently).
"Console Log": {
"prefix": "log",
"body": [
"console.log($0);"
],
"description": "JavaScript Console.log()"
}
The user snippet works, but when I type log
into the editor, my custom snippet is at the bottom of the list.
Is there any way I can make this the first suggestion, rather than the last?
I have created a JavaScript 'user snippet' in the Visual Studio Code to make it slightly faster to call the console.log()
method (a line of code that I write very frequently).
"Console Log": {
"prefix": "log",
"body": [
"console.log($0);"
],
"description": "JavaScript Console.log()"
}
The user snippet works, but when I type log
into the editor, my custom snippet is at the bottom of the list.
Is there any way I can make this the first suggestion, rather than the last?
Share Improve this question edited Feb 13, 2022 at 17:56 ikonuk 65210 silver badges22 bronze badges asked May 8, 2017 at 15:57 Adam McKennaAdam McKenna 2,4456 gold badges33 silver badges42 bronze badges1 Answer
Reset to default 20Try setting:
"editor.snippetSuggestions": "top"