XDS
XDS

Reputation: 4188

Resharper: Set sort order for class/method modifiers 'static'/'sealed' vS 'public'/'internal'/'protected'

When it comes to 'static' and 'sealed' I would like the default sort order for my classes (and methods) to be like this:

         sealed public class Foo {   static public void Bar() {}  }

The default settings of Resharper automatically reorder the above class definition to:

         public sealed class Foo {    public static void Bar() {} }

How can one change the default sort order for 'static'/'sealed' vS 'public'/'private' etc?

Upvotes: 1

Views: 688

Answers (1)

XDS
XDS

Reputation: 4188

I somehow managed to miss the option:

Resharper -> Options -> Code Editing -> C# -> Code Style -> Modifiers -> Modifiers Order

Upvotes: 2

Related Questions