28 lines
778 B
JSON
28 lines
778 B
JSON
{
|
|
// Clangd 配置
|
|
"clangd.path": "/usr/bin/clangd",
|
|
"clangd.arguments": [
|
|
"--background-index",
|
|
"--compile-commands-dir=${workspaceFolder}/build",
|
|
"--header-insertion=iwyu",
|
|
"--completion-style=bundled",
|
|
"--pch-storage=memory",
|
|
"--cross-file-rename"
|
|
],
|
|
// C++ 配置
|
|
"C_Cpp.intelliSenseEngine": "disabled", // 使用 clangd 替代默认引擎
|
|
"C_Cpp.autocomplete": "disabled",
|
|
"C_Cpp.errorSquiggles": "disabled",
|
|
// 文件关联
|
|
"files.associations": {
|
|
"*.h": "c",
|
|
"*.hpp": "cpp",
|
|
"*.cpp": "cpp"
|
|
},
|
|
// 编辑器配置
|
|
"editor.formatOnSave": true,
|
|
"editor.tabSize": 4,
|
|
"editor.insertSpaces": true,
|
|
// ROS 2 配置
|
|
"ros.distro": "humble"
|
|
} |