ReSharper formatting of complex object literals -
when have complex object literals, resharper insists on formatting them liberal use of newlines. instance, example below formatted example code; note how angle brackets , parenthesis placed on lines of own.
var myresultitem = new resultitem { investigation = new list<investigation> { new investigation { id = new list < cv > { myenum .myvalue .ascv ( ) } } }, item = new textresult { textresultvalue = "some text" } };
i have tried various r# options, have been unable find setting triggers behavior.
for less complex literals, other code, formatting looks good.
i'm using resharper 8.2 in vs 2013.
try unchecking resharper | options | code editing | c# | formatting style | other | align multiline constructs | array, object , collection initializer
. try increasing value of resharper | options | code editing | c# | formatting style | line breaks , wrapping | line wrapping | right margin
.
Comments
Post a Comment