Get correct indentation in Resharper for object and array initializers

I had the same issue with anonymous delegates. The fix for anonymous delegate formatting is here:

I did finally find the way to fix
this. The options for formatting
anonymous methods are spread across
two separate pages in ReSharper
options: Braces Layout and Other. The
“don’t indent a ridiculous amount” is
on the Other page, and it’s called
“Indent anonymous method body”. Turn
it off, and set the brace option to
“At end of line”, and you get
something much nicer:

But i’m not sure about the instance declaration collection formatting i’m afraid. 🙁

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)