csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

InvocationExpression + VariableDeclaration - prefer breaking to new line before breaking parameters

Open belav opened this issue 4 years ago • 0 comments

This is more of a nice to have. Prettier currently doesn't deal with this.

var someVariable___________________________ = CallSomeMethod(
    someLongValue,
    someOtherLongValue
);

// should prefer to break this way if possible
var someVariable___________________________ = 
    CallSomeMethod(someLongValue, someOtherLongValue);

// but will break this way if the InvocationGetsTooLong
var someVariable = CallSomeMethodLongMethod(
    someLongValue,
    someOtherLongValue,
    someOtherReallyLongValue,
    andAnother
);

belav avatar Jun 07 '21 16:06 belav