Created
March 5, 2024 23:35
-
-
Save hongchaodeng/cc896ad84b2c3468d757c0ab524be4bd to your computer and use it in GitHub Desktop.
VSCode cpp include path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"myIncludePath": [ | |
"${workspaceFolder}/src", | |
"${workspaceFolder}/cpp/include", | |
"${workspaceFolder}/cpp/example/thirdparty/include", | |
// "${workspaceFolder}/bazel-out/darwin_arm64-opt/bin/external/com_github_gflags_gflags/_virtual_includes/gflags", | |
] | |
}, | |
"configurations": [ | |
{ | |
"name": "Mac", | |
"compilerPath": "/usr/bin/clang", | |
"intelliSenseMode": "macos-clang-x64", | |
"includePath": ["${myIncludePath}"], | |
"defines": ["${myDefines}"], | |
"cStandard": "c11", | |
"cppStandard": "c++17", | |
"macFrameworkPath": ["/System/Library/Frameworks", "/Library/Frameworks"], | |
"browse": { | |
"path": ["${workspaceFolder}/src"] | |
} | |
} | |
], | |
"version": 4, | |
"enableConfigurationSquiggles": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment