Xcode 9.1, still no code folding ribbon

I cant beleive that the code folding ribbon was left out of Xcode 9 all together. So, OK, now 9.1 beta is out and it's still missing. IS it coming back?

This is the most rediculious thing I have ever seen from, Apple. Well, there has been others, but we won't get into the past. But how can you do this, to remove something that is so elegent and works so well. I am truly handicaped without this feature.

Could not agree more. They do make some dumb decisions sometimes.

There is no clickable ribbon, but there IS code folding. Just press Option + CMD + Left/Right to fold/expand.

And actually, once you fold it creates a nice highlight, that is clickable to expand.


It's weird that there is no clickable element to fold, but I guess it's coming.

Now try and do that on an IF statement. It doesn't work. The whole method gets folded.

This always folds the whole method. Not usable on if while or even plain blocks ... so not usable for me ...

If you move the pointer while pressing command over the if or the opening or closing curly brace, then you'll see the whole if statement highlighted. If you then click, you get the fold menu.

What has changed is that it is no more possible to select only the "then" or "else" part of the statement as it was with the ribbon.


I agree it is less visible and less immediate than the ribbon, but that reduces space screen space use. And the various gray colors were not so easy to distinguish.


After some practice, I even find the new method easy to use.

Doesn't work for me at all. Holding Command doesn't highlight the if statement.

Does not work here also. Nothing happens with cmd pressed.

Just tried and it only works for class methods, where it is really working great, but it does not work on all other blocks, like if, else, for etc.

Just had the idea, this could work with swift files, and indeed it does. So this feature is great, but at the moment only works with swift code NOT with Objective C code !

Yes this is super rediculous. Now I have to do this:


Command-Hover over the func, then click Fold in the menu. Why do I have to do this, just to fold my code?

You made the point.


So, file a bug report for this objC Editor bug.

Thanks, this helped a lot.

Xcode 9.1, still no code folding ribbon
 
 
Q