如何消除红色波浪?
添加以下字段进settin.json:
"C_Cpp.default.compilerArgs": [
"-g",
"${file}",
"-std=c++11",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
]
本人的./vscode/setting.json
内容参考:
{
"code-runner.executorMap": {
"cpp": "g++ $fileName -std=c++11 -o $fileNameWithoutExt.exe && ./$fileNameWithoutExt.exe"
},
"C_Cpp.errorSquiggles": "Enabled",
"C_Cpp.default.compilerArgs": [
"-g",
"${file}",
"-std=c++11",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
]
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)