vscode使用小结

头文件只能感应设置

通过编辑 .vscode/c_cpp_properties.json文件
(有波浪线,说明没有感应到,点击小灯泡,–> Edit includePath setting)

{
    "configurations": [
        {
            "name": "Linux",
            "browse": {
                "path": [
                    "${workspaceFolder}"
                ],
                "limitSymbolsToIncludedHeaders": true
            },
            "includePath": [
                "${workspaceFolder}",
                "${workspaceFolder}/lib/gstreamer"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "clang-x64"
        }
    ],
    "version": 4
}

includePath下,可以添加工程内的和系统内的依赖

猜你喜欢

转载自blog.csdn.net/csdnhuaong/article/details/80899215