Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to style named parameters in visual studio?

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);

like image 837
dan Avatar asked Jul 27 '12 21:07

dan


Video Answer


1 Answers

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.

like image 128
Peter Ritchie Avatar answered Sep 28 '22 17:09

Peter Ritchie