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:
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 Startup Project 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.SetStartupProjectCommandLineArguments". |