c_cpp_properties.json
c_cpp_properties.json

c_cpp_properties.json

通过ctrl+shift+p 调出命令行窗口,选择编辑配置(UI)

配置名称:Linux
编译器路径:/usr/bin/gcc
IntelliSense 模式: gcc-x64 (Linux 默认为gcc-x64)

包含路径:

${workspaceFolder}/**
/usr/local/include/
/usr/local/include/opencv4/
/usr/local/include/opencv4/opencv2/

C 标准:c11
C++ 标准:c++14

配置结束后就会发现.vscode文件夹中多出一个c_cpp_properties.json文件

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**",
                "/usr/local/include/",
                "/usr/local/include/opencv4/",
                "/usr/local/include/opencv4/opencv2/"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c11",
            "cppStandard": "c++14",
            "intelliSenseMode": "gcc-x64"
        }
    ],
    "version": 4
}

发表评论

您的电子邮箱地址不会被公开。