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.

/command

Executes the specified command after launching the Visual Studio integrated development environment (IDE).

devenv /command CommandName

Arguments

CommandName
Required. The complete name of a Visual Studio command or its alias, enclosed in double quotation marks. For more information about command and alias syntax, see Visual Studio Commands.

Remarks

After startup is complete, the IDE executes the named command. If you use this switch, the IDE does not display the Visual Studio Start Page on startup.

If an add-in exposes a command, you can use this switch to launch the add-in from the command line. For more information, see Controlling Add-Ins with the Add-In Manager.

Example

This example launches Visual Studio and automatically runs the macro Open Favorite Files.

devenv /command "Macros.MyMacros.Module1.OpenFavoriteFiles"

See Also

Devenv Command Line Switches | Visual Studio Commands | Pre-defined Visual Studio Command Aliases

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