debugging 将C/C++ Runner设置为默认使用集成终端

7kqas0il  于 2022-11-14  发布在  C/C++
关注(0)|答案(1)|浏览(318)

C/C++ Runnner扩展(链接here)自动为C/C++项目创建调试配置,例如生成如下所示的.json文件:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "C/C++ Runner: Debug Session",
      "type": "cppdbg",
      "request": "launch",
      "args": [],
      "stopAtEntry": false,
      "externalConsole": true,
      "cwd": "c:/Users/Otávio Augusto Silva/Documents/Code/C++/dynamic_array",
      "program": "c:/Users/Otávio Augusto Silva/Documents/Code/C++/dynamic_array/build/Debug/outDebug",
      "MIMode": "gdb",
      "miDebuggerPath": "gdb",
      "setupCommands": [
        {
          "description": "Enable pretty-printing for gdb",
          "text": "-enable-pretty-printing",
          "ignoreFailures": true
        }
      ]
    }
  ]
}

我的问题是,如何让扩展将externalConsole选项默认设置为false?它总是创建配置文件来使用外部控制台。

093gszye

093gszye1#

转到Extensions,搜索Code Runner,然后选择Manage,这是Disable, Uninstall右侧的设置图标,然后选择Extension Settings
搜索code-runner.runInTerminal并将其设置为true

相关问题