问题
I have a few classes that are a complete mess. I would like for CodeRush to organize the code so that public, private, etc. methods become grouped. I would also like for CodeRush to organize my public methods into a region, and put fields and properties into regions.
How can I do this?
回答1:
Have a look at the CR_ClassCleaner plugin -
http://code.google.com/p/dxcorecommunityplugins/wiki/CR_ClassCleaner
回答2:
In addition to the CR_ClassCleaner plug-in, there's a lighter and simplified version of such functionality in the CR_MemberOrganizer plug-in shipped in CodeRush as an open source feature.
来源:https://stackoverflow.com/questions/7182169/coderush-code-cleanup-formatting