Skip to content

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

November 21, 2012

“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:http://msdn.microsoft.com/en-us/library/c338aexd(v=vs.110).aspx

Autocompletion is also provided for both the commands

and their corresponding arguments.

Happy Programming! =)

Advertisements
Leave a Comment

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: