要修改配置文件,在File->Preferences->Settings下,配置:
{ "editor.minimap.enabled": true, "C_Cpp.autocomplete": "Default", "[cpp]": { "editor.quickSuggestions": true }, "[c]": { "editor.quickSuggestions": true } }
|
1
2
3
4
5
6
7
8
9
10
11
|
{
"editor.minimap.enabled"
:
true
,
"C_Cpp.autocomplete"
:
"Default"
,
"[cpp]"
:
{
"editor.quickSuggestions"
:
true
}
,
"[c]"
:
{
"editor.quickSuggestions"
:
true
}
}
|
首先得安装官方的插件ms-vscode.cpptools。我用的mac版, 在Code->首选项->设置 里可以找到,默认是关闭状态,设置为true打开即可。如果找不到直接复制如下代码,可放在用户设置或者工作区设置,后者只针对当前project生效。
{ "[cpp]": { "editor.quickSuggestions": true }, "[c]": { "editor.quickSuggestions": true } }
|
1
2
3
4
5
6
7
8
9
|
{
"[cpp]"
:
{
"editor.quickSuggestions"
:
true
}
,
"[c]"
:
{
"editor.quickSuggestions"
:
true
}
}
|
2万+

被折叠的 条评论
为什么被折叠?



