How to collapse all methods in Xcode?
问题 How to collapse all methods in a class in Xcode? Collapsing one by one is not an option anymore. 回答1: 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 回答2: Updates in Xcode 10 Xcode 10 has increased support for code folding, including: A new code folding ribbon showing all of the multi-line foldable blocks of code in the