You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many style guides set a different indentation (eg. *2 tabWidth) for wrapped lines/ continuation indents; since Prettier does not want any new configurable option; Could we please add a different default for continuation indents?
See the prettier example, where I would like "this.line.is.very.long()" and "bodyOfBlock()" to have different indentation:
dvlato
changed the title
Option to configure indentation for "continuation indents/wrapped lines"
Different indentation for "continuation indents/wrapped lines"
Dec 1, 2021
Many style guides set a different indentation (eg. *2 tabWidth) for wrapped lines/ continuation indents; since Prettier does not want any new configurable option; Could we please add a different default for continuation indents?
See the prettier example, where I would like "this.line.is.very.long()" and "bodyOfBlock()" to have different indentation:
Prettier 2.5.0
Playground link
Input:
Output:
Expected behavior:
Elements inside the IF block have a 4 character indentation instead of the 2 for "bodyOfBlock()"
The text was updated successfully, but these errors were encountered: