Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Set Project Command Line Arguments 2015
Set Project Command Line Arguments 2015

Set Project Command Line Arguments 2015

Ryan113

|
1,040 installs
| (1) | Free
Provides a command that sets the startup project's command line arguments property from text in the text editor.
Download

This Visual Studio extension makes it easy to set your startup project's command line arguments property to text from a text editor window. For example you can create a text file containing commonly used command arguments and then position your cursor on the line you want and this command will copy that line of text into the startup project's command line arguments property. This can be useful if you often run different command lines and repeat them and prefer to use the normal text editor to create and maintain them.

When executed the command does these steps:

  1. Execute the Edit.Copy command (normally mapped to Ctrl-C) to copy the current line (or whatever text is selected in the text editor) into the clipboard.
  2. Get that string from the clipboard and trim it (remove both leading and trailing whitespace).
  3. Find the first Startup project in the solution.
  4. Set that project's command line arguments property to the trimmed string.

To use this I add a text file in my project or solution and put my command line arguments in that text file. Then when I want to change the startup arguments, I open that text file, position my cursor on the line I want, and run this command.

This can set the command line arguments property in C#, C++, VB, and possibly other project types. Each project type can put its command line arguments in a different property so other types may or may not work depending on the property name they use.

This adds a menu item Tools -> "Set Command Line Arguments", and adds the keyboard shortcut Shift-Alt-5. Of course you can change that keyboard shortcut using the Tools -> Customize -> Keyboard dialog. The name of this command in that dialog is "Tools.SetCommandLineArguments".

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft