vscode配置markdown代码片段snippet不生效问题
markdown.json
{
"cpp code": {
"prefix": "cpp",
"body": [
"```cpp",
"$1",
"```",
],
"description": "cpp code"
}
}
Ctrl + Shift + P
后输入settings
,然后选择open settings (json)
,输入如下配置
{
"[markdown]": {
"editor.formatOnSave": false,
"editor.renderWhitespace": "all",
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"editor.acceptSuggestionOnEnter": "on"
}
}
参考
解决vscode配置代码片段不生效的问题