controlflow / resharper-postfix

ReSharper Postfix Templates plugin
MIT License
127 stars 12 forks source link

.for should not use implicitly typed variables #19

Open Athari opened 10 years ago

Athari commented 10 years ago

Currently the plugin always uses var. For example, if I enter 10.for, I get the following:

for (var i = 0; i < 10; i++)

However, ReSharper generates int. Maybe it depends on ReSharper's settings (I've lowered severity of some inspections regarding usage of var), I'm not sure. Either way, I'd prefer explicitly typed variables (or choosing type).