Provides C/C++ language IDE features for VS Code using clangd.
vscode-clangd
provides the features designated by the Language Server Protocol, such as code completion, code formatting and goto definition.
Note: clangd
is under heavy development, not all LSP features are implemented. See Current Status for details.
To use vscode-clangd
extension in VS Code, you need to install vscode-clangd
from VS Code extension marketplace.
vscode-clangd
will attempt to find the clangd
binary on your PATH
. Alternatively, the clangd
executable can be specified in your VS Code settings.json
file:
{ "clangd.path": "/absolute/path/to/clangd" }
To obtain clangd
binary, please see the installing Clangd.
A guide of developing vscode-clangd
extension.
vscode-clangd
extension in VS Code.$ cd /path/to/clang-tools-extra/clangd/clients/clangd-vscode/ $ npm install $ code . # When VS Code starts, press <F5>.