How to open black Console(Output) Window in windows form application in Visual Studio

人走茶凉 提交于 2019-12-11 03:35:46

问题


I can't find how to open that black window that I can cout and stuff. I would appreciate if anybody could help.

Thank you very much in advance.


回答1:


That's a console window`, and you open it with AllocConsole. See all of the Console Functions at MSDN.




回答2:


Default key mapping is Ctrl + W,O

Or do View menu -> Output window

There is also an immediate window which let's you execute statements, like ?myVal and it will tell you the value. It can be found at Ctrl+D,I or Debug->Windows->Immediate




回答3:


Do not hesitate, install on your Visual Studio the Open Command Line extension. You can see how easy is to open a new cmd console on the picture below:




回答4:


This is an old question but since it is not answered: For Visual Studio 2017 under menu Tools->Nuget Package Magager->Package Manager Console



来源:https://stackoverflow.com/questions/5902200/how-to-open-black-consoleoutput-window-in-windows-form-application-in-visual-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!