Skip to content

Tip 5.1: You can run Visual Studio commands from the Command Window

April 16, 2014

“Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio“, courtesy of ‘Sara Ford’

Sara Ford’s Blog

Press Ctrl+Alt+A to open the Command Window, or go to View–Other Windows–Command Window. Now you can run various Visual Studio commands without having to go through the menus.

Examples of such commands include the following:

  • >File.Open c:\samples\myFile.txt Opens a file without going through the menu
  • >Help vs.commandwindow Opens a Help topic directly
  • >? i Returns the contents of the variable i
  • >? i = 10 Sets the contents of the variable i

For more commonly used commands that take arguments for Visual Studio 2012, check out the following documentation:

Autocompletion is also provided for both the commands

and their corresponding arguments.

Happy Programming! =)

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: