Adam_Ake

Q: Xcode 8.0 code folding

Ever since I've updated my Xcode I've been experiencing issues with code folding. You see, I used to organize my code in a neat way and keep it folded at all times to easily navigate and see my class's properties at a glance. It does not seem to be possible in the current version of Xcode, though: every time I open a .swift file it's always unfolded and whilst folded, all the properties, except for the computed ones, are represented as an (...) icon . This bothers me a lot. Is there any way / plugin to bring back the old way (Xcode 7) of code folding to the current version of Xcode? I would deeply appreciate that.

Xcode 8.0, OS X El Capitan (10.11.6)

Posted on Sep 25, 2016 8:41 AM

Close

Q: Xcode 8.0 code folding

  • All replies
  • Helpful answers

  • by goodoldharris,

    goodoldharris goodoldharris Sep 30, 2016 9:25 PM in response to Adam_Ake
    Level 1 (17 points)
    iTunes
    Sep 30, 2016 9:25 PM in response to Adam_Ake

    Yes, the new folding that collapses all properties significantly decreases the usefulness of code folding. It's a real time waster. And I would add that folding a simple property into "..." saves no vertical space so serves no purpose. It is also not consistent with the menu description which reads "Fold Methods & Functions." There should be a way to fold methods and functions only (although ideally this would also include code for computed properties etc. that falls within curly braces).