See https://stackoverflow.com/a/3184778
You can configure ReSharper for this, you need to do the following (All in ReSharper -> Options -> C # -> Formatting Style):
- In a brace, set Array and the object initializer to the next line (BSD style).
- In the Other section, verify that Continuous Indent is set to 1.
- Otherwise, make sure that the initializer block of the array, object, and collection is not checked.
You should get the style you want.
jessehouwing
source share