Closed DevYeom closed 4 months ago
Synced to Apple’s issue tracker as rdar://127922850
We made a fairly conscious decision early on to keep all indentation sizes fixed, rather than offering context-based variant indentations.
It's something we could revisit in the future, but for now, this is by design, and I want to be deliberate about increasing the surface area of the formatter's configurability. Each new setting creates the potential for interactions with other settings, making it harder to reason about.
Thanks!
Tested on
510.1.0
with 2 spaces for indentation.Input:
Output:
Input code was formatted using Re-Indent (
⌃I
) in Xcode. It appears that the default indentation rule was applied. How about adding a rule for adjusting the indentation of multipleif-let
expressions?