Does Xcode have code autoformat feature?

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

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

8条回答
  •  春和景丽
    2021-01-30 10:45

    One trick is to select the code (either "select all" or just the section you want to re-format) - then cut, then paste it back. This triggers the automatic code formatting in the Xcode editor.

提交回复
热议问题