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
?它总是创建配置文件来使用外部控制台。
1条答案
按热度按时间093gszye1#
转到
Extensions
,搜索Code Runner
,然后选择Manage
,这是Disable, Uninstall
右侧的设置图标,然后选择Extension Settings
。搜索
code-runner.runInTerminal
并将其设置为true
。