Forrest logo
tool overview
On this page you find all important commands for the CLI tool clangd. If the command you are looking for is missing please ask our AI.


Clangd is a language server implementation for C++ based on Clang, the popular C++ compiler. It provides language services such as code completion, finding references, definition and declaration jumping, and much more to enhance the development experience for C++ programmers.

Clangd implements the Language Server Protocol (LSP), which allows it to communicate with different code editors and integrated development environments (IDEs) such as Visual Studio Code, Sublime Text, and Emacs. This enables developers to leverage Clangd's features within their preferred coding environment without worrying about the specifics of Clang and its tooling ecosystem.

Some key features of Clangd include:

  1. Code completion: Clangd offers intelligent code completion suggestions, which can save time and improve productivity by automatically suggesting relevant code snippets and API references based on the context.

  2. Navigation: It allows easy navigation through the codebase by enabling jumping to the definition and declaration of symbols, finding references to a particular symbol, and providing contextual information about code elements.

  3. Diagnostics: Clangd provides live diagnostics for syntax errors, type mismatches, and other potential issues in the code, helping to identify and fix problems early.

  4. Refactoring support: It offers various refactoring actions like renaming symbols, extracting code into functions, and organizing includes to improve code quality and maintainability.

  5. Documentation and signature help: Clangd presents function signatures and documentation in a pop-up window, making it easier to understand APIs and their usage while writing code.

Overall, Clangd is a powerful tool that enhances the C++ development workflow by providing advanced language services, making it easier to write, understand, and refactor C++ code.

List of commands for clangd:

tool overview