How can I format code in Xcode like in Eclipse or NetBeans? June 6, 2023 by Tarik In Xcode 4, it’s been moved to Editor > Structure > Re-Indent command (and has a default shortcut of CTRL+I ).