dotnet / project-system

The .NET Project System for Visual Studio
MIT License
969 stars 387 forks source link

Launch Profiles should remember recently used command line arguments #7391

Open RikkiGibson opened 3 years ago

RikkiGibson commented 3 years ago

Visual Studio Version: 17.0 preview2 31430.40.main

When experimenting with the command line options for a program it's common to try several different strings for the command line and to mix-and-match the arguments. It would be really handy if the Launch Profiles window included a "most recently used" list for what command lines we've used to debug a project in the past.

tmeschter commented 3 years ago

Note that you can reference environment variables and MSBuild properties in most of the launch profile fields using %ENV_VAR% and $(PropertyName) syntax, respectively. That's not a general replacement for what you are suggesting, but I imagine in at least some cases it might eliminate the need to update the launch profile.

tmeschter commented 2 years ago

I could imagine having metadata on the property indicating that the UI should remember and offer the last n values and offering them in a drop down or similar.