C++ 如何告诉VS代码如何刷新compile_commands.json文件?
我有一个C++ 如何告诉VS代码如何刷新compile_commands.json文件?,c++,visual-studio-code,C++,Visual Studio Code,我有一个c_cpp_properties.json文件,如下所示: { "configurations": [ { "name": "app", "intelliSenseMode": "clang-x64", "compileCommands": "build/compile_commands.json" } ], "version": 4 } 我的项目中还有一个脚本,可以生成build/compile\u commands.j
c_cpp_properties.json
文件,如下所示:
{
"configurations": [
{
"name": "app",
"intelliSenseMode": "clang-x64",
"compileCommands": "build/compile_commands.json"
}
],
"version": 4
}
我的项目中还有一个脚本,可以生成build/compile\u commands.json
。让我们称之为gencompilecommands.sh
如何配置VS代码,以便在创建、销毁或修改项目树中的任何文件后调用此脚本,使其始终是最新的 如果您可以使用扩展名,那么。。