Skip to content

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

July 21, 2010

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

Sara Ford’s Weblog

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 2008, check out the following documentation:http://msdn2.microsoft.com/en-us/library/c338aexd(VS.90).aspx

Autocompletion is also provided for both the commands

and their corresponding arguments.

 

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 )

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: