Does Xcode have code autoformat feature?

后端 未结 8 990
忘了有多久
忘了有多久 2021-01-30 10:09

Is any way to autoformat a source code in the Xcode IDE?

8条回答
  •  忘了有多久
    2021-01-30 10:37

    There isn't really an autoformat option in Xcode.

    There is an option ^I (Control-I) to re-indent the code, which will re-align the code according to the tab width set in your preferences, but that's about as far as it goes.

    You might have better luck with a text editor like TextMate? I don't know for certain, but I know it supports Objective-C and has some macros, there may be a reformat option?

提交回复
热议问题