Wednesday 14 January 2015

Resharper settings for C#

There used to be some useful Resharper settings at http://daniellang.net/5-resharper-settings-for-c4-coding/, but Daniel Lang, the guy who wrote them has since lost that page.  So, as I figure out my Resharper settings again, I'll post them here.

The idea is that if you don’t like this formatting:













...and prefer this:



















...In Code EditingOther, at Align Multiline Constructs make sure that Array, object and collection initializer is unchecked.



And, according to Igal on Stack Overflow, the following should also be set, however they appear to be set by default:

  1. In Braces Layout, set Array and object initializer to At Next line (BSD Style).
  2. In Other, make sure that Continuous line indent multiplier is set to 1.

How to reduce complexity and know everything.

Quality We have a great QA. His code is like a Rolex. You look at his gherkin, and smile.  It says what it's testing, in plain English, ...