Resharper 6 - automatically adding “this”
-
12-12-2019 - |
Domanda
There is a naming style in a company I work for that "this" must be added to every function, property call and field. Sometimes I forget about it. I want Resharper to do it automatically.
Any suggestions?
Soluzione
Find option ReSharper | Options -> Code Editing | C# | Formatting Style | Other -> Other | Force "this." qualifier for instance member
and change it to Use always
, then run full Code Cleanup.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow