问题
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