Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我工作的一家公司中有一种命名风格,必须将“this”添加到每个函数、属性调用和字段中。有时我会忘记它。我希望 Resharper 自动完成。
有什么建议么?
找到选项ReSharper | Options -> Code Editing | C# | Formatting Style | Other -> Other | Force "this." qualifier for instance member并将其更改为Use always,然后运行完整的代码清理。
ReSharper | Options -> Code Editing | C# | Formatting Style | Other -> Other | Force "this." qualifier for instance member
Use always