Use ReSharper to arrange members in the same order as implemented interface

安稳与你 提交于 2020-01-03 06:50:10

问题


Is it possible to use the Type Layout feature of ReSharper to sort the members that implements an interface in the same order as they were declared in the interface?


回答1:


No, unfortunately you can't do that directly. But, like Kirill said, you can use the same rules to let them order.

Additionally you can let Resharper group members of an interface into one region by modifying the CodeCleanup profile:

<Group>
    <ImplementsInterface Immediate="true" Region="${ImplementsInterface} Members"/>
</Group>

see also: Resharper Doc

After the automatic grouping and sorting you can adjust the result via the Resharper "File Structure".



来源:https://stackoverflow.com/questions/12393043/use-resharper-to-arrange-members-in-the-same-order-as-implemented-interface

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!