开发场景一:macbook + 远程内网linux开发
vscode 配置
插件列表:clangd,cmake,remote-ssh,gitlens,copilot/continue,vscode-icons,GDB Debug
- clangd
- 安装clangd-server centos8/ubuntu20.04 可以直接安装新版本,参考clangd page。
centos7则需要单独编译安装一套glic2.18以上的库。参考这里。
- vscode配置
"clangd.arguments": [
"--log=verbose",
"--header-insertion=iwyu",
"--pch-storage=memory",
"--function-arg-placeholders=false",
"--background-index",
"--clang-tidy",
"-j=12",
],
"clangd.path": "/path/to/clangd",
remote + github copilot + 离线 https://github.com/orgs/community/discussions/6942
“remote.extensionKind”: { “GitHub.copilot”: [“ui”], “GitHub.copilot-chat”: [“ui”], “linhmtran168.mac-ca-vscode”: [“ui”], }
Here’s why it works: https://code.visualstudio.com/api/advanced-topics/extension-host
- cmake-tools