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
Today, both Xcode and swift-format perform the following sort of indentation on multi-line guards and ifs:
guard let thing1 = someThing,let thing2 = someThing else{// Some indented code}
This feels extremely asymmetrical and unaesthetic. What would be preferable is formatting this way (or providing a way to do so):
guard let thing1 = someThing,let thing2 = someThing else{// Some indented code}
This indents the body of the guard 4-spaces (or whatever is defined) away from the scope itself (the guard) and not the last line which might not be the scope. Also it aligns the different conditions which make up the conditional.
Is that achievable with swift-format? Is there a way to make it easily achievable?
Thank you 🙂
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 52ad6d881cad12a71f7111c93476b884
is duplicated by:
Issue Description:
Today, both Xcode and swift-format perform the following sort of indentation on multi-line guards and ifs:
This feels extremely asymmetrical and unaesthetic. What would be preferable is formatting this way (or providing a way to do so):
This indents the body of the guard 4-spaces (or whatever is defined) away from the scope itself (the guard) and not the last line which might not be the scope. Also it aligns the different conditions which make up the conditional.
Is that achievable with swift-format? Is there a way to make it easily achievable?
Thank you 🙂
The text was updated successfully, but these errors were encountered: