问题
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