生成c_cpp_properties.json檔案
- 開啟命令皮膚
ctrl+shift+p
,輸入[c/c++:]edit configuration(UI)
或[c/c++:]edit configuration(JSON)
即可生成; - 新增
includePath
,例如:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/usr/include",
"/path/to/thirdparty/include"
],
"compilerPath": "/usr/bin/g++",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64"
}
],
"version": 4
}