sortingconfigurationresharpermodifiers

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?


Solution

  • I somehow managed to miss the option:

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