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.
我希望 resharper 默认情况下不要将私有访问修饰符放在字段上 - 它们已经是私有的,我不需要额外的修饰符。
我如何告诉 resharper 把它剪掉?
在Resharper的选项中
在代码编辑> C# >其他
在修饰符部分取消选中使用显式私有修饰符
更新(Resharper 8.1)
在Resharper 8.1中,您可以在以下位置找到此选项:代码编辑> C# >格式化样式>其他。然后在修饰符部分取消选中使用显式私有修饰符。
ReSharper 9.1
ReSharper -> 选项 -> 代码编辑 -> C# -> 代码样式 -> 修饰符 -> 使用显式私有修饰符(取消选中)