Skip to content

Instantly share code, notes, and snippets.

@hongchaodeng
Created March 5, 2024 23:35
Show Gist options
  • Save hongchaodeng/cc896ad84b2c3468d757c0ab524be4bd to your computer and use it in GitHub Desktop.
Save hongchaodeng/cc896ad84b2c3468d757c0ab524be4bd to your computer and use it in GitHub Desktop.
VSCode cpp include path
{
"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