Xcode code formatter Swift
I\'m trying to auto format my code written in Swift. It\'s necessary if you\'re working in team and using CVS and don\'t want
(I know the question says Xcode but) personally this is another reason to use AppCode alongside Xcode.
While Xcode only fixes the indentation for Swift code, as mentioned in the question, AppCode at least handles spaces too. Somewhat relatedly it removes indents from empty lines by default.
AppCode's Swift support definitely isn't perfect yet and you still need to check the code in both, but it's still worth it because of better navigation and things like this.