Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to sort code via Resharper?

CodeRush has this nifty plugin called cr_ClassCleaner that allows me to sort the elements in the class (e.g. methods, private variables, etc...).

Can Resharper 5.x do this, either via the product or plugins?

like image 370
AngryHacker Avatar asked Feb 16 '11 17:02

AngryHacker


2 Answers

Yes - ReSharper, Tools, Cleanup Code.

They recently blogged about customising the type layout this generates.

like image 175
Rup Avatar answered Oct 20 '22 22:10

Rup


There is an option in code cleanup to reorder type members. This would be done as part of a full cleanup. If you wanted to only reorder, you could create a cleanup profile that only included that step. You can have multiple cleanup profile.

like image 4
Tim Hoolihan Avatar answered Oct 21 '22 00:10

Tim Hoolihan