1.code to open vscode
2.view -> Extensions
search clangd & install
/home/xxx/.vscode/extensions/llvm-vs-code-extensions.vscode-clangd-0.1.24
clangd server on ubuntu
第一种方法 : clangd插件提示安装
descriptor in clangd client(not server !!!)
The extension requires the clangd language server.
You will be prompted to download it if it's not found on your PATH.(Automatic installation is possible on x86-64 Linux, Windows, and Mac)./home/xxx/.config/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2
clangd server 必须在线安装
clangd client 插件没有提供 在 clangd client 侧下载并上传到 server 并安装 的机制 // 参考 remote-ssh插件
$ ps -ef |grep clangd
suweish+1251861251554722:52?00:05:06/home/suweishuai/.config/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/bin/clangd --compile-commands-dir=/home/suweishuai/work/1_ok6410/linux --background-index --completion-style=detailed --header-insertion=never -log=info