xmake-vscode icon indicating copy to clipboard operation
xmake-vscode copied to clipboard

Set path to compileCommands automatically.

Open Symbitic opened this issue 1 year ago • 2 comments

I'm not sure if this is a feature or a bug fix, but this removes the need for setting the path to the compile commands file in .vscode/c_cpp_properties.json by setting C_Cpp.default.compileCommands.

With this, IntelliSense should work as soon as XMake is run for the first time.

Symbitic avatar Jan 05 '24 01:01 Symbitic

If the user does not have cpptools installed and is only using clangd. Does it work? https://xmake.io/#/plugin/more_plugins?id=clangd

waruqi avatar Jan 05 '24 01:01 waruqi

可以参考下cmake插件的实现vscode-cmake-tools/src/cpptools.ts 使用ConfigurationProvider可以无需编辑配置文件,自动让Cpptools使用xmake生成的配置

123485k avatar Jan 06 '24 11:01 123485k