When I use the light bulb refactor built into Visual Studio to generate a local variable it always uses the var
syntax:
I (personally) don't like var
and would prefer to it to use an explicit type (in this instance double
). so it should create the code:
double v = CalculateDownTime(lineid, start, end);
How can I alter the Visual Studio settings so that it will do this? Is it possible?
Please don't discuss the pros and cons of var
vs explicit types. And no I don't want to use Resharper.