How can I remove indentation (from code formatting rules) of curly braces of object initializer?


I what to remove the unnecessary indentation of curly braces of object initializer:

The desired result is shown below (I remember that in the previous versions of R# it was the default behavior of the code formatting):

Comment actions Permalink

Hello Slava!


Thank you for contacting us.

Could you please check what is set in ReSharper | Options | Code Editing | C# | Formatting Style | Braces Layout | Array and Object initializer.

Thank you.

Comment actions Permalink

Hi, Angelina! Thank you for pointing straight to solution!
It seems that the setting was set to "next line indented 2 (GNU style)" instead of "next line indented".
Now the problem is solved.


Please sign in to leave a comment.