Using multipurpose Command Window to execute things faster in Visual Studio

By | February 6, 2016

The Visual Studio Command Window is very powerful and can help you to execute things faster during development. The Command window can execute commands  directly in the Visual Studio by using their names. This command could be something from menu, your custom command or even hidden that are not shown in the menu. You can also use this window for debugging as well.    It’s there since beginning with Visual Studio;  however it is often overlooked and  many developers are still unaware about this great tool.

Launch the Command Window by navigating from View  –> Other Windows –> Command Window.


The following screenshot shows a new command window open. The “>” indicates it is ready to accept commands.

Must Read :  Use C# Interactive Window for your coding experiment in Visual Studio 2015


Once you start typing here; you will find the available intellisene  to select the commands faster.  For an instance, as soon as I type file, I can see following list of command that are related with file.


From the list of commands related with file, if you just select File.NewProject;  the Visual Studio New File Dialog windows will appear.


This was just an example, you can try the several command to check the  this utility.

As I said earlier, you can use the Command Window tool during debugging to inspect variable.  Following example shows how you can display the value of a variable in command windows as well as attaching variable to quick watch.



All in all, this is a great utility of Visual Studio and if you are not using it start using it today !!  Read more about Command Window over here

Related Post : Command Line C# Interactive Script Execution for Visual Studio

Author: Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.