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).

Interested in JVM Development?

call to action image

You can also make an editor fold if you want to keep a specific piece of code hidden!

Learn More


Related Resources

Create an Editor Fold
Create an Editor Fold
Create an editor fold to hide parts of your class which can make it more readable.
Generate Overrides for equals(), hashCode() and toString()
Generate Overrides for equals(), hashCode() and toString()
We can generate the code to override the equals and hashCode methods.
Surround With
Surround With
Surround your code with common programming constructs.