Open alrz opened 4 years ago
I believe @CyrusNajmabadi has developed a refactoring feature for this exact purpose but I think it should be integrated into the formatting rules?
This is a problem for https://github.com/dotnet/roslyn/pull/32386 because we're producing a possibly long chain of expressions and the wrapping is handled manually which isn't ideal (for instance, we need to follow user preference on tab/space etc, practically duplicating the same logic). Perhaps the formatter should be able to handle wrapping and indentation on its own here.
/cc @sharwell
Perhaps the formatter should be able to handle wrapping and indentation on its own here.
I am not opposed to this. however, the best course of action IMO would be:
I think the formatter should be able to handle this kind of input
Expected Behavior: Either of these based on some user preference:
Actual Behavior: Code is unchanged.