I think named parameters are good, but I think the downside is they add some visual noise to function calls. I want Visual Studio to color them light gray (the way ReSharper grays out dead code), so that the actual parameter values are emphasized.
Looks somewhat like this now (everything is black):
LaunchThings(planes: true, boats:false, rocketship: true, nukes: false);
I want it to look like this:
LaunchThings( planes: true, boats:false, rocketship: true, nukes: false);
There's nothing currently in Visual Studio that would allow you to do this. You could create an extension or an add-in to do this as I'm unaware of any extensions/add-ins that already do this. DxCore is a library to extend visual studio "easier". Maybe that would less the burden of creating an extension like this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With