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 |
The Compilation Database preference page is located below clangd in workspace preferences and project properties. Use Set compilation database path in .clangd file to enable automatic updates to the managed CompilationDatabase entry. The Custom compilation database directory setting can point to an absolute or project-relative directory containing compile_commands.json; on the workspace page, this setting applies to projects without a project-specific custom directory.
In project properties, the Compilation Database page also shows status, source, the path to compile_commands.json, and the active build configuration. These details are project-specific and are not shown on the workspace preference page.
Related concepts: