Use the
clangd preference page to configure the behaviour of the clangd language server:

| Option | Description |
|---|---|
Path |
The absolute path of the |
Enable clang-tidy diagnostics |
Enables the ClangTidy C++ linter tool. |
Index project code in the background and persist index on disk |
Enables building of files in the background to generate a project index. |
Completion |
The granularity of code completion suggestions. |
Pretty-print JSON output |
Enables the pretty-printing of JSON output. |
Drivers |
A comma-separated list of globs for the extraction of system includes. |
Additional |
Miscellaneous |
Compilation database management is configured on the Compilation Database page below clangd. On the workspace page, use Set compilation database path in .clangd file together with Custom compilation database directory to define a workspace-wide default for the directory containing compile_commands.json. On the project properties page, the same page also shows a Compilation database status section with the active source, the resolved path to compile_commands.json, and the active build configuration.
Related concepts: