CodeRush code cleanup formatting

北慕城南 提交于 2019-12-24 09:39:11

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!