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

Inlay Hints
Inlay Hints
Inlay hints provide additional information about your code.
Go to Next Error
Go to Next Error
Quickly move to the next (or previous) error or warning in the file.
Find Next Word
Find Next Word
Find next word and highlight all instances.