IntelliJ IDEA 11.1 Web Help

Function Keyboard shortcut Use this shortcut to...
Expand Ctrl+Add Command Add or Ctrl+Equals Command Equals Expand method, class or any other foldable block of code at caret.
Collapse Ctrl+Subtract Command Subtract or Ctrl+Minus Command Minus Fold method, class or any other foldable block of code at caret.
Expand All Ctrl+Shift+Add Command Shift Add or Ctrl+Shift+Equals Command Shift Equals Expand all folded blocks in the current source file.
Collapse All Ctrl+Shift+Subtract Command Shift Subtract or Ctrl+Shift+Minus Command Shift Minus Collapse all foldable blocks in the current source file.
Fold Selection / Remove Region Ctrl+.Ctrl . Collapse or expands the current selection. This option folds or unfolds arbitrary fragments of text.
Fold Code Block Ctrl+Shift+.Ctrl Shift . Collapse current block of code, even though that block does not have folding toggles (for example, if or when constructs.

See Also

Procedures:

Web Resources: