Expand and Collapse Code

Quickly view specific parts of a class by expanding or collapsing code blocks.

Collapse all code using ⌘⇧- (macOS) / Ctrl+Shift+Minus (Windows/Linux) and expand the section you need using ⌘+ (macOS) / Ctrl++ (Windows/Linux). You can collapse an individual section using ⌘- (macOS) / Ctrl+- (Windows/Linux) or expand all code again using ⌘⇧+ (macOS) / Ctrl+Shift+Plus (Windows/Linux).


Related Resources

Generate constructors and accessor methods
Generate constructors and accessor methods
Quickly generate common code constructs such as Constructors, Getters and Setters.
Move Statement
Move Statement
Move a statement up or down within the same scope.
Optimize imports
Optimize imports
Remove unused imports from your code with one keyboard shortcut.