在 Visual Studio Code 中,在外部窗口中启动控制台应用程序

在 Visual Studio Code 中,在外部窗口中启动控制台应用程序

问题描述:

我在 VS Code 中打开了一个控制台应用程序.当我按下 Ctrl-F5 时,我的程序的输出和其他文本一起显示在调试控制台窗口中.

I have a Console application open in VS Code. When I press Ctrl-F5, the output of my program is displayed in a DEBUG CONSOLE window, along with other text.

如何让 Visual Studio 代码在新的控制台窗口中启动我的程序?

How do I get Visual Studio code to launch my program in a new console window?

如文档所述 此处 可以使用此设置来实现:

As documented here this can be achieved using this setting:

"console": "externalTerminal"

设置文件在解决方案目录中:.vscode/launch.json .

The settings file is in the solution directory: .vscode/launch.json .