Resharper format settings
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 line
- Blank lines – I don’t like a lot of blank lines so I set mostly to 1/0
-
Other –> Align Multiline Constructs – Call arguments = Off
-
Other –> Other – Indent array, object and collection initializer block = Off

Regions
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:
<Group>
<ImplementsInterface Immediate="true" Region="${ImplementsInterface} Members"/>
</Group>
Also delete the section:
<Group>
<Name Region="Nested type: ${Name}"/>
</Group>
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.
[...] http://justinramel.com/2009/06/10/resharper-format-settings/ Possibly related posts: (automatically generated)ReSharper 3.0 (b468) Released! Comments Off [...]
Resharper format settings « just in ram
4 Nov 09 at 11:16 pm