Resharper’s code cleanup (CTRL+E,CTRL+C) has a handy option which reorders your type members for you. However the predefined reordering rules might not suit your needs. If you like StyleCop’s stricter ruleset, then this is your lucky day. Go to RESHARPER -> OPTIONS, and then CODE EDITING -> C# -> TYPE MEMBERS LAYOUT. Select the “Custom layout” radio button and paste in the following XML.

Strictly speaking, there are four differences between this layout definition and StyleCop’s.

1. I’ve kept ReSharper’s default [StructLayout] and NUnit test fixtures.
2. Operators are inserted just before Indexers. Operators do not have a predefined position in StyleCop’s ruleset.
3. After all StyleCop ordering is complete, equivalent members are ordered alphabetically. If you don’t like the alphabetical ordering, simply remove all <Name /> tags in the <Sort /> elements.
4. Regions are removed. You can simply remove the RemoveAllRegions="true" attribute from the default pattern if you would prefer this not to be the case.

Enjoy!