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 within the region or globally in the class.
I see the feature in Resharper to do it, but it does not seem to do anything.
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.
Sorting is not activated by default. You can activate it by opening the resharper options and then go here:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With