Skip to content

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

July 2, 2011

“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 2008, check out the following documentation Visual Studio Commands with Arguments

Autocompletion is also provided for both the commands

Autocompletion in Command Window

and their corresponding arguments

Command window 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: