.clangd
bash
CompileFlags:
Add: [
"-I/home/wls/gits/liuyedao/toolchain/sysroot/usr/include",
"-I/home/wls/gits/liuyedao/toolchain/sysroot/usr/include/c++/9.3.0",
"-I/home/wls/gits/liuyedao/toolchain/sysroot/usr/include/arm-linux-gnueabihf",
"-target=arm-linux-gnueabihf",
"--sysroot=/home/wls/gits/liuyedao/toolchain/sysroot"
]
vscode workplace file
bash
{
"folders": [
{
"path": "."
}
],
"settings": {
// ===== clangd 插件相关设置 =====
"clangd.arguments": [
"--compile-commands-dir=./",
"--background-index",
"--header-insertion=never"
]
,
"clangd.path": "/usr/bin/clangd", // 可改成你系统实际的 clangd 路径
"C_Cpp.intelliSenseEngine": "Disabled", // 禁用 VSCode 自带的 IntelliSense,防冲突
// ===== UI 样式设置 =====
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#65c89b",
"activityBar.background": "#65c89b",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#945bc4",
"activityBarBadge.foreground": "#e7e7e7",
"commandCenter.border": "#15202b99",
"sash.hoverBorder": "#65c89b",
"statusBar.background": "#42b883",
"statusBar.foreground": "#15202b",
"statusBarItem.hoverBackground": "#359268",
"statusBarItem.remoteBackground": "#42b883",
"statusBarItem.remoteForeground": "#15202b",
"titleBar.activeBackground": "#42b883",
"titleBar.activeForeground": "#15202b",
"titleBar.inactiveBackground": "#42b88399",
"titleBar.inactiveForeground": "#15202b99"
},
// ===== 插件:comment translate 配置 =====
"peacock.remoteColor": "#42b883",
"commentTranslate.targetLanguage": "zh-CN",
"commentTranslate.source": "Bing"
}
}