Does Xcode have code autoformat feature?

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

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

相关标签:
8条回答
  • 2021-01-30 10:46

    ctrl + I will auto format the code you're selecting

    0 讨论(0)
  • 2021-01-30 10:48

    Yes Xcode 4 has an autoformat feature.

    Try following:

    1. Select text. CMD+A.
    2. Press CTRL+I .

    Please also see here: Fix code indentation in Xcode

    0 讨论(0)
提交回复
热议问题