Better_Software_Header_MobileBetter_Software_Header_Web

Find what you need - explore our website and developer resources

Supercharging VS Code with C++ Extensions

VS Code with both the C/C++ and clangd extensions installed.

"C_Cpp.intelliSenseEngine": "disabled",
"cmake.copyCompileCommands": "${workspaceFolder}/compile_commands.json",
"clangd.arguments": [
    ... //
    "--enable-config"
]
CompileFlags:
    Add: [-Wall, -Wextras, -Wno-c++98-compat, -Wno-pre-c++17-compat]
If:
    PathMatch: .*/sourcesubdir/.*\.cpp
CompilerFlags:
    Add: [...]
If:
    PathMatch: Project1/.*
CompileFlags:
    CompilationDatabase: Project1 // the parent folder for your compile_commands.json
    // You can optionally customize specific compiler flags for Project1 here
---

If:
    PathMatch: Project2/.*
CompileFlags:
    CompilationDatabase: Project2
    // You can optionally customize specific compiler flags for Project2 here

About KDAB


SérgioMartins

Sérgio Martins

Senior Software Engineer

NicolasArnaud-Cormos

Nicolas Arnaud-Cormos

Senior Software Engineer & Teamlead

Learn Modern C++

Learn more