Ctrl+Shift+P 打开命令 输入configuration 点第一个才有 c_cpp_properties.json (感谢LucifeR_Shun提出更改

 

{

"configurations": [

{

"name": "Linux",

"includePath": [

"${workspaceFolder}/**",

"/usr/src/linux-headers-4.15.0-36-generic/include/" //此处添加头文件路径,

],

"defines": [],

"compilerPath": "/usr/bin/gcc",

"cStandard": "c11",

"cppStandard": "c++17",

"intelliSenseMode": "gcc-x64"

}

],

"version": 4

}

 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐