Well now you have it built in! Editor -> Structure -> Format File
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: