操作步骤

在 vscode 的 setting.json 里添加需要使用代码片段的语言:

例如:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
"[markdown]": {
"editor.quickSuggestions": {
"comments": "on",
"strings": "on",
"other": "on"
}
},
"[javascript]": {
"editor.quickSuggestions": {
"comments": "on",
"strings": "on",
"other": "on"
}
},