Skip to content

Tip 5.5: How to create a command alias

March 18, 2012

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

Sara Ford’s Blog

To create an alias, open the Command Window and type alias ha Help.About.

Now typing ha in the Command Window pops open the Help–About menu.

But let’s explore a more practical application. Consider creating the alias se for Solution Explorer, as shown here:

>alias se View.SolutionExplorer

The idea for this example is that while you are coding in the editor, you can press Ctrl+/ to jump to the Find window and type se.

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

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: