How to use code formatter in Xcode for Swift?

后端 未结 9 667
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:02

    The reformat code command in xcode is Ctrl-I, not Cmd-I and it appears to work just fine.

提交回复
热议问题