[英]Visual Studio Code - How to put User Snippets at the top of the list
I have created a JavaScript 'user snippet' in Visual Studio Code to make it slightly faster to call the console.log()
method (a line of code which I write very frequently). 我在Visual Studio Code中创建了一个JavaScript'用户片段',以便稍微调用console.log()
方法(我经常编写的一行代码)。
"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. 用户代码段有效,但当我在编辑器中输入log
时,我的自定义代码段位于列表的底部。
Is there any way I can make this the first suggestion, rather than the last? 我有什么方法可以把它作为第一个建议,而不是最后一个?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.