Skip to content

Instantly share code, notes, and snippets.

@huanghantao
Last active January 2, 2020 08:44
Show Gist options
  • Save huanghantao/cde8a6f7aa3c5b14a3d8dbb571fc85cf to your computer and use it in GitHub Desktop.
Save huanghantao/cde8a6f7aa3c5b14a3d8dbb571fc85cf to your computer and use it in GitHub Desktop.

vscode配置--C++.md

C++

c_cpp_properties.json

作用:头文件搜索路径配置。

{
    "configurations": [{
        "name": "Linux",
        "includePath": [
            "${workspaceFolder}/**",
            "/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5",
            "/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/x86_64-redhat-linux",
            "/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/backward",
            "/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include",
            "/usr/local/include",
            "/usr/include/**"
        ],
        "defines": [],
        "compilerPath": "/usr/bin/g++",
        "cStandard": "c11",
        "cppStandard": "c++11"
    }],
    "version": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment