Does Xcode have code autoformat feature?

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

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

8条回答
  •  走了就别回头了
    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

提交回复
热议问题