SwiftFormat icon indicating copy to clipboard operation
SwiftFormat copied to clipboard

Indent rule breaks Xcode default indentation

Open easydev991 opened this issue 3 years ago • 2 comments

Hello! I tried to use indent rule, but it breaks Xcode default indentation (default is applied with control + I). I set --xcodeindentation enabled, --allman does not affect this. I tried many combinations of rules, but did not find a solution. Is it possible to avoid the unneeded indentation? Green lines on the screenshot is the result of swiftformat run, red ones - default Xcode indentation. brokenIndentation

SwiftFormat 0.50.7

easydev991 avatar Jan 24 '23 07:01 easydev991

Just in case, this bug still exists on version 0.50.9

easydev991 avatar Feb 19 '23 16:02 easydev991

seems related to #852 and #1241

alonsir avatar Feb 09 '24 17:02 alonsir