C++ VSCode用户代码段不在其他代码段内工作
我创建了一些VSCode用户代码段,但它在其他代码段中不起作用 这是VSCode的最新版本,1.36 如果我有这个片段C++ VSCode用户代码段不在其他代码段内工作,c++,visual-studio-code,vscode-settings,code-snippets,tab-completion,C++,Visual Studio Code,Vscode Settings,Code Snippets,Tab Completion,我创建了一些VSCode用户代码段,但它在其他代码段中不起作用 这是VSCode的最新版本,1.36 如果我有这个片段 "tmp": { "prefix": "tmp", "body": [ "#include <bits/stdc++.h>", "using namespace std;", "", "int main()",
"tmp": {
"prefix": "tmp",
"body": [
"#include <bits/stdc++.h>",
"using namespace std;",
"",
"int main()",
"{",
" ${1:int} ans;",
" ${2:/* code */}",
" return 0;",
"}"
],
"description": "template"
},
它从来都不起作用,在完成时什么也没有表现出来
我想在代码段中显示完成。
非常感谢您的帮助。将此设置为false(如在“设置”面板中取消选中复选框):
默认值为true
,将阻止内部代码段作为代码段工作
"cin1": {
"prefix": "cin1",
"body": [
"int a;",
"cin >> a;"
],
"description": "template"
},
"editor.suggest.snippetsPreventQuickSuggestions": false