How can I fold code in Xcode 10.0?

how can I fold code (loops etc.) in xcode?


Code fold works in Xcode 7.3.1,but removed since Xcode 8? 9? .


I like the code fold in visual studio REALLY.


I have been waitting for too long for this feature.

Answered by Claude31 in 336119022

If you use XCode10


- in preferences -> text Editing

select code folding ribbon


- then, when you click on ribbon, code will fold and unfold.

Accepted Answer

If you use XCode10


- in preferences -> text Editing

select code folding ribbon


- then, when you click on ribbon, code will fold and unfold.

14

thanks

in xcode IDE you can press this shortcut

to fold

option + command + arrow left

⌥ + ⌘ + ←

to collapse

option + command + arrow

⌥ + ⌘ + →

How can I fold code in Xcode 10.0?
 
 
Q