Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Alias Command

Creates a new alias for a complete command, complete command and arguments, or another alias.

Tip   Typing >alias without any arguments displays the current list of aliases and their definitions.
Tools.Alias [/delete] [/reset] [aliasname] [aliasstring]

Arguments

aliasname
Optional. The name for the new alias. If no value is supplied for aliasname, a list of the current aliases and their definitions appears.
aliasstring
Optional. The complete command name or existing alias and any parameters that you want to create as an alias. If no value is supplied for aliasstring, the alias name and alias string for the specified alias displays.

Switches

/delete or /del or /d
Optional. Deletes the specified alias, removing it from autocompletion.
/reset
Optional. Resets the list of pre-defined aliases to its original settings. That is, it restores all pre-defined aliases and removes all user-defined aliases.

Remarks

Since aliases represent a command, they must be located at the beginning of the command line.

When issuing this command, you should include the switches immediately after the command, not after the aliases, otherwise the switch itself will be included as part of the alias string.

The /reset switch asks for a confirmation before the aliases are restored. There is no short form of /reset.

Examples

This example creates a new alias, Upper, for the complete command Edit.MakeUpperCase.

>Tools.Alias upper Edit.MakeUpperCase

This example deletes the alias, Upper.

>Tools.alias /delete Upper

This example displays a list of all current aliases and definitions.

>Tools.Alias

See Also

Visual Studio Commands with Arguments | Command Window | Creating Custom Aliases for Visual Studio Commands | Find/Command Box | Pre-defined Visual Studio Command Aliases

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft