Similar to the question for eclipse,
Ha, it's as simple as Code->Reformat code... (option-cmd-L)
Code->Reformat code...