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代码,以便在创建、销毁或修改项目树中的任何文件后调用此脚本,使其始终是最新的

如果您可以使用扩展名,那么。。