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.

image

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

image

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.

image

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

image

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.

image

image

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