-
具体方案例如
{ "suggest.noselect": true, "languageserver": { "ccls": { "command": "ccls", "filetypes": ["cc", "c", "cpp", "cuda"], "rootPatterns": [".tasks", ".git/", "build/"], "initializationOptions": { "compilationDatabaseDirectory": "build", "client": { "snippetSupport": true }, "cache": { "directory": "/tmp/ccls" }, "highlight": { "lsRanges": true }, "clang": { "extraArgs": [ "-I", "/opt/ros/noetic/include/" ] } } } } }
添加“clang”部分,就可以实现ros下代码补全功能
标签:ccls,头文件,自定义,settings,clang,build,ros,true From: https://www.cnblogs.com/gwzz/p/17321654.html