vscode添加头文件路径

win+p 。选择c_cpp_properties.json

 

{

"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

}

你可能感兴趣的:(linux学习)