C# organizing my code
does any tool (VS extension, or maybe Resharper supports this...) exist which can orginize code in my class in some specified way? Like this :
public static fields/properties
private static fields/properties
public fields/properties
private fields/properties
constructors
public static methods
private static methods
public methods
private methods
etc
(and all are 开发者_开发知识库sorted alphabetically)
It would be so nice...
I like to have my code very organized, but sometimes I do not follow my own rules and than reorganizing everything by hands may be a little bit problematic )
Yes, ReSharper can do it. You can even customize the way it organizes items... take a look at this blog post by Hadi Hariri http://hadihariri.com/2011/01/04/in-depth-look-at-customizing-type-layout-with-resharper/
Yes, resharper has such a feature (and many other equally marvelous ones).
Telerik's JustCode has this feature as well. Code ordering rules are easily customizable through the Options dialog - No XML.
精彩评论