How to use code formatter in Xcode for Swift?

后端 未结 9 762
Happy的楠姐
Happy的楠姐 2021-01-31 07:25

Xcode code formatter Swift

I\'m trying to auto format my code written in Swift. It\'s necessary if you\'re working in team and using CVS and don\'t want

9条回答
  •  自闭症患者
    2021-01-31 08:03

    +i: reformat code
    Ctrl+i: fix code indentation

    Eventhough it has good IntelliSense, xcode sucks at code formatting generally.
    Wish it was better.
    Apple has to spend so much effort in this in order to make it VS level good.

提交回复
热议问题