Collapse code block

IntelliJ IDEA keyboard shortcut

Ctrl + −

Press Ctrl + − to collapse code block.

Practice this shortcut All IntelliJ IDEA shortcuts