Skip to content

Instantly share code, notes, and snippets.

@wklchris
Created May 5, 2018 12:05
Show Gist options
  • Save wklchris/921810f85d5c3d5132910e4590702350 to your computer and use it in GitHub Desktop.
Save wklchris/921810f85d5c3d5132910e4590702350 to your computer and use it in GitHub Desktop.

How to correctly set c_cpp_properties.json of VS Code on Windows.

See link here: Official Reference.

Below is my personal working example, which does the compiling job as well as removes annoying wavy underlines.

{
"configurations": [
{
"name": "MinGW",
"intelliSenseMode": "clang-x64",
"compilerPath": "E:/LLVM/bin/gcc.exe",
"includePath": [
"${workspaceFolder}"
],
"defines": [
"_DEBUG"
],
"browse": {
"path": [
"E:/LLVM/lib/gcc/x86_64-w64-mingw32/7.2.0/include",
"E:/LLVM/lib/gcc/x86_64-w64-mingw32/7.2.0/include-fixed",
"E:/LLVM/include/*",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"cStandard": "c11",
"cppStandard": "c++17"
}
],
"version": 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment