How to reorder type members with Resharper?

前端 未结 8 492
名媛妹妹
名媛妹妹 2021-02-01 12:48

Typical scenario: a class that a lot of people have worked on. I\'d like to sort methods, properties, etc... in alphabetical order.

I\'d like to be able to do this wit

8条回答
  •  广开言路
    2021-02-01 12:58

    Use the "Cleanup Code" functionality.

    The order of the members can be set up in the ReSharper options in Languages, C#, Type Members Layout. This is a well documented XML layout specification which ReSharper uses when reordering members.

提交回复
热议问题