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

Answered

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):

2 comments

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.

1

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.


image.png
0

Please sign in to leave a comment.