Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

Did you know... You can run Visual Studio commands with arguments from the command window? - #087

After the past several weeks of Find tips (i knew i would have a few tips, just not nearly a month's worth!), let's change things up a bit and talk about the command window.

Press Ctrl+Alt+A to open the command window.  Check the keybinding for View.CommandWindow if your keybindings are different.  Also available from the View - Other Windows - Command Window.  Now you can run various Visual Studio commands without having to go through the menus. 

Examples:

  • >File.Open c:\samples\foo.txt  //Open a file without going through the menu. 
  • >Help vs.commandwindow  //open a help topic directly
  • >? i  // get the contents of the variable i
  • >? i = 10  // set the contents of the variable i

View the following help topic for a list of commonly-used commands that include arguments in VS 2005.  Also available in VS 2008 documentation.

Auto-completion is also provided for both the commands and their corresponding arguments.

Command Window Auto-completion for commands

You can also get auto-completion for arguments. 

Command Window Autocomplete for Arguments

Technorati tags: ,
Posted: Tuesday, November 20, 2007 3:00 AM by saraford

Comments

ccatto said:

Hey Now Sara,

Just saw your blog from a link on the newsletter & subscribed. I really like the content of your blog. The idea of a little tidbit each day including hotkeys sounds great to me. I love hotkeys & VS hotkeys I use so often.

Thx for the info,

Catto

# November 20, 2007 12:33 PM

Секреты Visual Studio said:

Нажмите Ctrl+Alt+A , чтобы открыть командное окно. Проверьте эту комбинацию клавиш для View.CommandWindow,

# February 16, 2009 3:21 AM
New Comments to this post are disabled
Page view tracker