Indent multi-line expressions in function arguments #12854
Labels
formatter
Related to the formatter
needs-decision
Awaiting a decision from a maintainer
style
How should formatted code look
Would it be possible to add an option to allow indentation of multi-line expressions in function arguments? Currently it aligns everything to the left with the other arguments.
For example, this is the formatting I get:
That alignment is hard to read. I want something like this instead:
I've shortened the lines to focus on the alignment (though I realize this short they might end up on one-line)
I admit I don't know what the ideal formatting here is, but the first one is definitely not it. Perhaps it should always rewrite as a paren expression, which has nicer results.
Keywords: indent function argument parameter
The text was updated successfully, but these errors were encountered: