Visual Studio Tricks


Visual Studio (2005,2008,2010) Tips and Tricks.


#90 Create a command alias

To create an alias, open up the Command Window (or anywhere you can type in VS commands) and type in something along the lines of

alias GobblesGobblesGobbles help.about

Command Window creating aliases

and now running GobblesGobblesGobbles from the VS command window will pop up the Help About menu.  I will award bonus points if you can figure out the Gobbles reference.  =)

But let's explore a more practical application....

alias se View.SolutionExplorer

Now you can just type se to jump to the solution explorer.  For this particular example, the idea is you can be typing in the editor, press Ctrl+/ to jump to that Find window that can act as a command window, and type in se.

Actually, you've probably already used one of the predefined aliases before. Debug.Print is alias to '?'.  To see the full list of aliases, type in

alias

predefined aliases

Lastly, to reset your command window aliases back to defaults, type in

alias /reset

Reset aliases warning prompt

or just simply use the /delete switch to delete a particular alias, like alias se /delete.

 

Click Screenshot To Play Video

#90 Create a command alias

Runtime: $post.Custom("MovieRuntime") - Resolution: 900 by 580 - File Size: $post.Custom("MovieFileSize")

Direct Download: If the video does not work for you,
Click Here to download it.
Kick this Trick on DotNetKicks.com

0 comment(s) so far

Post your comment

Thanks for your comments


Be nice ;)

  • Comment

RSS Feeds

All Technology Posts

Scott Cate Main Blog Feed


Visual Studio Tricks Only Feed

@ScottCate on Twitter

Twitter @ScottCate

  • Today is a good day!
  • @blaken i already like @codesmithtools :)
  • @pacitpros is hosting a 2 day IT Pro Conference in San Francisco March 22-23rd, 2012 Tech Days http://t.co/2igpJikF
  • Can you help me get to a quick 25 likes for #Mykb on Facebook? http://t.co/0WSh2GdZ
  • Meeting Planner Meltdown via/ @EventDay evn.tc/xpXHnP #Engage365 #EventProfs