Skip to content

Instantly share code, notes, and snippets.

@GavinRay97
Created March 9, 2021 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GavinRay97/1fcadf8c0eb98780100e69c68aa01484 to your computer and use it in GitHub Desktop.
Save GavinRay97/1fcadf8c0eb98780100e69c68aa01484 to your computer and use it in GitHub Desktop.
VS Code official C/C++ Extension combined with clangd
// From: https://stackoverflow.com/a/59820115
{
"C_Cpp.intelliSenseEngine": "Disabled",
"C_Cpp.autocomplete": "Disabled", // So you don't get autocomplete from both extensions.
"C_Cpp.errorSquiggles": "Disabled", // So you don't get error squiggles from both extensions (clangd's seem to be more reliable anyway).
"clangd.path": "/path/to/your/clangd",
"clangd.arguments": ["-log=verbose", "-pretty", "--background-index", "--compile-commands-dir=/path/to/your/compile_commands_dir/"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment