Get correct indentation in Resharper for object and array initializers

后端 未结 4 2177
无人及你
无人及你 2021-02-01 01:25

Right now resharper formats our code like this:

private readonly List folders = new List
                                        {
           


        
4条回答
  •  名媛妹妹
    2021-02-01 01:47

    For R# 8 there is a setting exactly for this purpose in Options -> Code Editing -> C# -> Formatting Style -> Braces Layout -> Array and object initializer.

    "At the next line (BSD style)" is the one which this thread asks for.

提交回复
热议问题