C # organizing my code

Is there any tool (VS extension, or maybe Resharper supports this ...) exists that can style the code in my class in a certain 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 they are all sorted alphabetically)

It would be so nice ...

I like it when my code is very organized, but sometimes I don’t follow my rules, and reorganizing everything manually can be a bit problematic)

+6
code-formatting c # code-organization visual-studio-2010 resharper
source share
3 answers

Yes, ReSharper can do this. You can even set up a way to organize it ... take a look at this Hadi Hariri blog post http://hadihariri.com/2011/01/04/in-depth-look-at-customizing-type-layout-with-resharper/

+6
source share

Yes, resharper has such a feature (and many others are equally wonderful).

+3
source share

Telerik JustCode has this feature. Code ordering rules are easily configured in the Options - No XML dialog box. JustCode - Reordering

+3
source share

All Articles