How to collapse all methods in Xcode?

Omer picture Omer · May 14, 2010 · Viewed 59.1k times · Source

How to collapse all methods in a class in Xcode?

Collapsing one by one is not an option anymore.

Answer

Joseph picture Joseph · Feb 15, 2011

As of Xcode 4 it seems to have changed.

command-alt-shift-left arrow will do the trick...

To fold/unfold current methods or if structures use:

Fold: command-alt-left arrow

Unfold: command-alt-right arrow