如何在调试时 Visual-studio-code 自动切换到内部终端而不是调试控制台

mic*_*han 2 visual-studio-code

我知道我可以设置使用内部终端进行调试。但是,当按 F5 时,Visual Studio 代码总是自动切换到调试控制台。

我查看了配置,但似乎无法设置跳转到内部终端。

IGu*_*sev 6

在 config 的配置数组中的 .vscode/launch.json 中,确保您具有以下配置:

 "console": "integratedTerminal",
 "internalConsoleOptions": "neverOpen"
Run Code Online (Sandbox Code Playgroud)