if you collapse the view of a loop (so that it shows the ellipses ... instead of the lines inside the loop) and you do this for many loops, is there a way to quickly expand all of them back to showing all lines of code again?
If you want to fold / unfold specific blocks of code, since Xcode 7, you have to enable that. Go to Xcode > Preferences > Text Editing > and check 'Code folding ribbon'.
Select Fold from menu list. It will fold your code and shows 3 dots, folding/covering entire block. Now, to again unfold your code block, release ⌘ (command) button and click on 3 dots folding a block.
Go to menu-->editor-->Code Folding-->Unfold all
Command + option + shift + <-
for collapse code
Command + option + shift + ->
for expand code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With