VSCode版本:1.20.1 操作系统版本:Windows 10 1709 重现步骤:
1.当我输入fun
并按Tab键时,此代码将显示。
function name(params) {
}
2.我不喜欢这个片段。我想更改它,但我找不到关于此片段的文件。
我该怎么办?
答案 0 :(得分:0)
It is a default snippet but you can overwrite it. So assuming javascript, try this in your javascript.json file:
"Function no name": {
"prefix": "fun",
"body": [
"function () {",
"",
"}"
],
"description": "Function no name or parameters"
},
Gear icon/User Snippets/choose your language.