CommandShortcutDescription
Expand , ⌘=, or ⌘=, ⌘=, or ⌘=, ⌘=, or ⌘=^ NumPad Plus, ^ Equals, , ⌃=, or ⌃=^ NumPad Plus, ^ Equals, , ⌃=, or ⌃= Expand the current collapsed fragment
Collapse ⌘- or ⌘-⌘- or ⌘-⌘- or ⌘-^ NumPad -, ^ Minus, ⌃- or ⌃-^ NumPad -, ^ Minus, ⌃- or ⌃- Collapse the current folding region
Expand Recursively ⌥⌘ , ⌥⌘=, ⌥⌘ or ⌥⌘=⌥⌘ , ⌥⌘=, ⌥⌘ or ⌥⌘=⌥⌘ , ⌥⌘=, ⌥⌘ or ⌥⌘=^ ⌥ NumPad Plus, ^ ⌥ Equals, ⌃⌥ , ⌃⌥=, ⌃⌥ or ⌃⌥=^ ⌥ NumPad Plus, ^ ⌥ Equals, ⌃⌥ , ⌃⌥=, ⌃⌥ or ⌃⌥= Expand the current folded fragment and all the subordinate collapsed folding regions within that fragment
Collapse Recursively ⌥⌘- or ⌥⌘-⌥⌘- or ⌥⌘-⌥⌘- or ⌥⌘-^ ⌥ NumPad -, ^ ⌥ Minus, ⌃⌥- or ⌃⌥-^ ⌥ NumPad -, ^ ⌥ Minus, ⌃⌥- or ⌃⌥- Collapse the current folding region and all the subordinate folding regions within it
Expand All ⇧⌘ , ⇧⌘=, ⇧⌘ or ⇧⌘=⇧⌘ , ⇧⌘=, ⇧⌘ or ⇧⌘=⌘⌨ * or ⌘⌨ *^ ⇧ NumPad Plus, ^ ⇧ Equals, ⌃⇧ , ⌃⇧=, ⌃⇧ or ⌃⇧=^ ⇧ NumPad Plus, ^ ⇧ Equals, ⌃⇧ , ⌃⇧=, ⌃⇧ or ⌃⇧= Expand all collapsed fragments within the selection, or, if nothing is selected, expand all the collapsed fragments in the current file
Collapse All ⇧⌘- or ⇧⌘-⇧⌘- or ⇧⌘-⇧⌘NumPad / or ⇧⌘NumPad /^ ⇧ NumPad -, ^ ⇧ Minus, ⌃⇧- or ⌃⇧- Collapse all folding regions within the selection, or, if nothing is selected, collapse all the folding regions in the current file
Expand to level | 1, 2, 3, 4 or 5 ⌘⌨ *, 1 or ⌘⌨ *, 1⌘⌨ *, 1 or ⌘⌨ *, 1^ NumPad *, 1, ^ NumPad *, NumPad-1, ⌃⌨ *, 1 or ⌃⌨ *, 1^ NumPad *, 1, ^ NumPad *, NumPad-1, ⌃⌨ *, 1 or ⌃⌨ *, 1

⌘⌨ *, 2 or ⌘⌨ *, 2⌘⌨ *, 2 or ⌘⌨ *, 2^ NumPad *, 2, ^ NumPad *, NumPad-2, ⌃⌨ *, 2 or ⌃⌨ *, 2^ NumPad *, 2, ^ NumPad *, NumPad-2, ⌃⌨ *, 2 or ⌃⌨ *, 2

⌘⌨ *, 3 or ⌘⌨ *, 3⌘⌨ *, 3 or ⌘⌨ *, 3^ NumPad *, 3, ^ NumPad *, NumPad-3, ⌃⌨ *, 3 or ⌃⌨ *, 3^ NumPad *, 3, ^ NumPad *, NumPad-3, ⌃⌨ *, 3 or ⌃⌨ *, 3

⌘⌨ *, 4 or ⌘⌨ *, 4⌘⌨ *, 4 or ⌘⌨ *, 4^ NumPad *, 4, ^ NumPad *, NumPad-4, ⌃⌨ *, 4 or ⌃⌨ *, 4^ NumPad *, 4, ^ NumPad *, NumPad-4, ⌃⌨ *, 4 or ⌃⌨ *, 4

⌘⌨ *, 5 or ⌘⌨ *, 5⌘⌨ *, 5 or ⌘⌨ *, 5^ NumPad *, 5, ^ NumPad *, NumPad-5, ⌃⌨ *, 5 or ⌃⌨ *, 5^ NumPad *, 5, ^ NumPad *, NumPad-5, ⌃⌨ *, 5 or ⌃⌨ *, 5
Expand the current fragment and all the nested fragments up to the specified level
Expand all to level | 1, 2, 3, 4 or 5 ⌥⌘⌨ *, 1 or ⌥⌘⌨ *, 1⌥⌘⌨ *, 1 or ⌥⌘⌨ *, 1^ ⇧ NumPad *, 1, ^ ⇧ NumPad *, NumPad-1, ⌃⇧⌨ *, 1 or ⌃⇧⌨ *, 1^ ⇧ NumPad *, 1, ^ ⇧ NumPad *, NumPad-1, ⌃⇧⌨ *, 1 or ⌃⇧⌨ *, 1

⌥⌘⌨ *, 2 or ⌥⌘⌨ *, 2⌥⌘⌨ *, 2 or ⌥⌘⌨ *, 2^ ⇧ NumPad *, 2, ^ ⇧ NumPad *, NumPad-2, ⌃⇧⌨ *, 2 or ⌃⇧⌨ *, 2^ ⇧ NumPad *, 2, ^ ⇧ NumPad *, NumPad-2, ⌃⇧⌨ *, 2 or ⌃⇧⌨ *, 2

⌥⌘⌨ *, 3 or ⌥⌘⌨ *, 3⌥⌘⌨ *, 3 or ⌥⌘⌨ *, 3^ ⇧ NumPad *, 3, ^ ⇧ NumPad *, NumPad-3, ⌃⇧⌨ *, 3 or ⌃⇧⌨ *, 3^ ⇧ NumPad *, 3, ^ ⇧ NumPad *, NumPad-3, ⌃⇧⌨ *, 3 or ⌃⇧⌨ *, 3

⌥⌘⌨ *, 4 or ⌥⌘⌨ *, 4⌥⌘⌨ *, 4 or ⌥⌘⌨ *, 4^ ⇧ NumPad *, 4, ^ ⇧ NumPad *, NumPad-4, ⌃⇧⌨ *, 4 or ⌃⇧⌨ *, 4^ ⇧ NumPad *, 4, ^ ⇧ NumPad *, NumPad-4, ⌃⇧⌨ *, 4 or ⌃⇧⌨ *, 4

⌥⌘⌨ *, 5 or ⌥⌘⌨ *, 5⌥⌘⌨ *, 5 or ⌥⌘⌨ *, 5^ ⇧ NumPad *, 5, ^ ⇧ NumPad *, NumPad-5, ⌃⇧⌨ *, 5 or ⌃⇧⌨ *, 5^ ⇧ NumPad *, 5, ^ ⇧ NumPad *, NumPad-5, ⌃⇧⌨ *, 5 or ⌃⇧⌨ *, 5
Expand all the collapsed fragments in the file up to the specified nesting level
Fold Selection / Remove region ⌘. or ⌘.⌘. or ⌘.^ Period, ⌃. or ⌃.^ Period, ⌃. or ⌃. Collapse the selected fragment and create a custom folding region for it to make it "foldable" / Expand the current fragment and remove the corresponding custom folding region to make the fragment "unfoldable"
Fold Code Block ⇧⌘. or ⇧⌘.⇧⌘. or ⇧⌘.^ ⇧ Period, ⌃⇧. or ⌃⇧.^ ⇧ Period, ⌃⇧. or ⌃⇧. Collapse the code fragment between the matched pair of curly braces {} and create a custom folding region for that fragment to make it "foldable"

See Also

Procedures: