在 Visual Studio Code 中,在外部窗口中启动控制台应用程序 [英] In Visual Studio Code, launch a Console application in an external window

查看:39
本文介绍了在 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 .

这篇关于在 Visual Studio Code 中,在外部窗口中启动控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆