vscode总是要求添加包含路径| C项目

时间:2017-02-03 01:22:54

标签: c macos include visual-studio-code

我刚注意到(也许是最近的)每次我在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)

0 个答案:

没有答案