Visual Studio Commands and Aliases

A while ago I received the visit of two programmers from a middleware company at work.  They were showing me how to properly use their software, so they had to integrate it in our solution.  The more senior one was typing while the junior was learning from him.  I saw him use something I’ve never seen before so I guess I learned something too!

He used “>” followed by “of” in the search tab, and as he typed, the drop down menu was populated by files matching his filter… hum!  I didn’t know Visual Studio had this built in, I thought you had to use Workspace Whiz or Visual Assist!

Here’s an example:

(screenshot taken using the BWAPI solution)

The prefix > tells Visual Studio to interpret the rest as a command.  The actual Command Window is accessible using Ctrl-Alt-A (default binding) for those who don’t want to use the mouse  to select the “Quick Find” text box.  You can either use an Alias (such as of for Open File) or the actual command (such as File.Open).

Microsoft lists some commands and aliases available here but using >Alias will list all the set aliases.

http://msdn.microsoft.com/en-us/library/c3a0kd3x.aspx

You can create aliases and remove aliases using the alias command:

http://msdn.microsoft.com/en-us/library/xasxzd71.aspx

Given that most people don’t use them at all, it is pretty standard across all PCs, so if you have to work on other people’s PCs, you should be able to use aliases instead of relying on an installed plug in!

Leave a Reply

Your email address will not be published. Required fields are marked *