Xcode Swift code folding/collapse

前端 未结 5 1602
暗喜
暗喜 2020-12-28 14:10

I know we can use \"Shift + Alt + Cmd + Left\" to fold/collapse swift code in Xcode, but can anyone tell me how to fold/collapse for functions only?

5条回答
  •  梦谈多话
    2020-12-28 14:41

    As of now there is no option to fold only functions in you class, we may expect these features in future release of Xcode. To fold specific function you can use alt + command + left_arrow after placing the cursor in function starting line. Use alt + command + right_arrow for unfold folded function.

提交回复
热议问题