我刚安装了VS Code并使用该设置配置了C ++扩展。
{
"configurations": [
{
"name": "null",
"includePath": [
"/usr/include/c++/7.2.1",
"/usr/include/c++/7.2.1/x86_64-pc-linux-gnu",
"/usr/include/c++/7.2.1/backward",
"/usr/include",
"/usr/local/include",
"/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.1/include-fixed",
"/usr/include/linux",
"${workspaceRoot}"
],
"defines": [],
"browse": {
"path": [
"/usr/include/c++/7.2.1",
"/usr/include/c++/7.2.1/x86_64-pc-linux-gnu",
"/usr/include/c++/7.2.1/backward",
"/usr/include",
"/usr/local/include",
"/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.1/include-fixed",
"/usr/include/linux",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"intelliSenseMode": "clang-x64",
"compileCommands": "${workspaceRoot}/compile_commands.json"
}
],
"version": 3
}
然而,VS Code继续写错误之类的 this
无论如何,没有任何帮助。
希望你能提供帮助。