Code Formatting In Xcode

itsaboutcode picture itsaboutcode · Oct 2, 2009 · Viewed 29.1k times · Source

Is there anyway to format the code in Xcode like you can do in Eclipse or Netbenas. I have not found any option in menu, is there any hot key for this or its simply not in Xcode?

Answer

Dylan Markow picture Dylan Markow · Jul 23, 2011

In Xcode 4, it's been moved to Editor > Structure > Re-Indent command (and has a default shortcut of CTRL+I ).