Get correct indentation in Resharper for object and array initializers

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

Right now resharper formats our code like this:

private readonly List folders = new List
                                        {
           


        
4条回答
  •  故里飘歌
    2021-02-01 01:54

    I also had to uncheck ReSharper\Options\Languages\C#\Formatting Style\Other --> Align Multiline Constructs and uncheck "Array, object and collection initializer" along with the other answers provided here.

提交回复
热议问题