Files
VSAG_SENTRY_SIM_27RMUL/.vscode/settings.json
T
2026-11-17 21:47:13 +08:00

37 lines
1.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
// ---- C++ 智能感知 ----
// 用 clangd 当唯一引擎:它直接读工作区根的 compile_commands.json,
// include 路径/宏定义全部来自真实编译命令,不会再漏 ROS 头文件或本工程的头文件。
//
// 这份 compile_commands.json 由 xmake 在**每次构建后自动重写**
// (根 xmake.lua 里的 plugin.compile_commands.autoupdate 规则),
// 不需要任何手工生成步骤。
//
// 改了源码结构、但编辑器还在报 "xxx.hpp file not found" 时,
// 跑一次 `xmake` 让它刷新,然后在 VS Code 里
// Ctrl+Shift+P → "clangd: Restart language server"。
"C_Cpp.intelliSenseEngine": "disabled",
// 不丢 --clang-tidy,避免 ROS 头文件里一堆代码风格告警糊满屏幕。
"clangd.arguments": [
"--background-index",
"--completion-style=detailed",
"--header-insertion=never"
],
// 单独打开头文件、又不在编译数据库里时的兜底参数。
// 标准跟着工程走(C++23),并加上本工程的纯算法库头文件目录。
"clangd.fallbackFlags": [
"-std=c++23",
"-I/opt/ros/lyrical/include",
"-I${workspaceFolder}/src/sentry_nav/include"
],
"files.associations": {
"*.xacro": "xml",
"*.urdf": "xml",
"*.sdf": "xml"
},
// 编辑 SDF 时别被 XML 校验器报错(Gazebo 的 SDF 有自己的 schema,VS Code 不认识)
"xml.validation.enabled": false
}