Code Formatting In Xcode

前端 未结 12 1818
名媛妹妹
名媛妹妹 2020-12-09 02:01

Is there anyway to format the code in Xcode like you can do in Eclipse or Netbenas. I have not found any option in menu, is there any hot key for this or its simply not in X

12条回答
  •  有刺的猬
    2020-12-09 02:48

    If you love looking your code like me, you really need this shortcut :)

    You have to select with CMD + A for reformatting whole code segment.

    All you need to do this, select the code segment which you want to reformat it and press : Ctrl + I Magically, It is just reformatted

提交回复
热议问题