setting
{
"remote.SSH.remotePlatform": {
" <IP>": "linux"
},
"tabnine.experimentalAutoImports": true,
"C_Cpp.intelliSenseEngine": "Disabled",
"clangd.path": "c:\\Users\\hahahah\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\15.0.3\\clangd_15.0.3\\bin\\clangd.exe",
"clangd.arguments": [
"--compile-commands-dir=${workspaceFolder} --background-index --completion-style=detailed --header-insertion=never -log=info"
],
"window.zoomLevel": 1,
"editor.minimap.enabled": false,
"editor.renderWhitespace": "none",
"gitlens.currentLine.enabled": false,
"security.workspace.trust.untrustedFiles": "open",
"editor.mouseWheelZoom": true,
"workbench.colorTheme": "Default Light+",
"editor.tokenColorCustomizations": {
//设置关键字颜色、字体样式(斜体,加粗)
"keywords": {
"foreground": "#008000",
"fontStyle": "",
},
//设置变量颜色、字体样式
"variables": {
"foreground": "#000080",
"fontStyle": "",
},
//设置函数颜色
"functions": {
"foreground": "#008000",
"fontStyle": "bold",
},
//设置注释颜色
"comments": "#800080",
"numbers": "#FF0000",
"strings": "#FF0000",
"types": "#008000",
},
}
clangd失败
在workspace目录下创建一个.clangd文件,里面填入下面文本:
CompileFlags:
Add: --target=aarch64-linux-gnu
Remove: -mabi=lp64