xcodecode-formatting

How can I format code in Xcode like in Eclipse or NetBeans?


How can I format code in Xcode like in Eclipse or NetBeans? I have not found any options in the menu. Is there a hot key for this, or is it simply not available in Xcode?


Solution

  • Select some text and then: Edit->Format->Re-Indent

    You can bind this to a hotkey in the preferences.