Resharper 6 - automatically adding “this”
-
12-12-2019 - |
質問
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?
解決
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.
所属していません StackOverflow