我刚注意到(也许是最近的)每次我在vscode上的.c文件中键入一个新行(或者甚至当我在函数名称上clic)时,会出现黄色灯泡,并要求我添加包含路径到设置。但可能包括指定..我无法摆脱它,它让我发疯。
这是我的c_cpp_properties.json:
{
"configurations": [
{
"name": "Mac",
"includePath": ["/usr/include",
"/Users/XXX/XXX/XXX/includes",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include"],
"browse" : {
"limitSymbolsToIncludedHeaders" : false,
"databaseFilename" : ""
}
},
{
"name": "Linux",
"includePath": ["/usr/include"],
"browse" : {
"limitSymbolsToIncludedHeaders" : true,
"databaseFilename" : ""
}
},
{
"name": "Win32",
"includePath": ["c:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include"],
"browse" : {
"limitSymbolsToIncludedHeaders" : true,
"databaseFilename" : ""
}
}
]
}
谢谢! (顺便说一句,我在macos sierra)