Resharper does suggest me the usage of the var-keyword. Unfortunately, my new employer does not use var-keyword at all. Thats why I am having some trouble, because I am used to use the var-keyword.
Is it possible to let resharper do the opposite thing? So, it warns me everytime I use the var keyword and suggests me to declare the variable explicitly?
Thanks in advance!
Edit:\
I dont want to turn off the warning or something like that, I want to turn that Setting around, so I will get a warning whenever I'm using var.
From the toolbar at the top click Resharper - Options - Code Editing - C# - Code Style you will find 'var usage declarations' you then need to set the preference to 'Use explicit type' for 'Built in types', 'Simple Types' & 'Elsewhere'.
Go to Resharper Options, then to Code Editing->C#->Code Style.
There you can set everything like you want it.
Select your needed Preference or the notification level.
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