Archive for the ‘Resharper’ Category

Resharper format settings

10 June, 2009 1 comment

I can never remember these so thought it best to write them down. Start with the settings from:

Plus a few extras…

Go to menu Resharper –> Options –> Languages –> C# –> Formatting Style

  • Braces Layout –> All set to (BSD style)
  • Braces Layout –> Empty braces formatting = Together on the same lineimage
  • Blank lines – I don’t like a lot of blank lines so I set mostly to 1/0image
  • Other –> Align Multiline Constructs – Call arguments = Off

  • Other –> Align Multiline Constructs – Expression = Offimage

  • Other –> Other – Indent array, object and collection initializer block = Offimage


Stop Resharper adding regions to interface implementations and nested classes:

Go to menu: Resharper –> Options –> Languages –> C# –> Type Members Layout

Un-tick Use Default Patterns and you get a text area full of xml. Scroll to the bottom and delete the section:

  <ImplementsInterface Immediate="true" Region="${ImplementsInterface} Members"/>


Also  delete the section:

  <Name Region="Nested type: ${Name}"/>


Finally click Ok.

Code Cleanup

Go to menu Resharper –> Options –> Tools –> Code Cleanup

Add a new profile with the following settings:


I didn’t realise I had fiddled with the default settings so much no wonder I can never remember them.

Categories: Resharper Tags: