Microsoft Visual Studio: How to keep the console open without manually reading input?

futlib picture futlib · May 26, 2011 · Viewed 10.2k times · Source

I'm writing some C++ with Microsoft Visual Studio 2010 Express, and I'm wondering if there is a way to display command output somewhere in the IDE instead of an external console window, or at least keep that window open.

Reading something from STDIN would work for a console application, but this is a unit test case and I don't want to modify the generated main function. Is there another way?

Answer

digit plumber picture digit plumber · May 26, 2011

Ctrl + F5 for quick test. The key combination keeps the console open until you close it.