- Click the toggles
or
. - Place the caret within the desired block, and choose or on the main menu, or just press Ctrl+Plus/Minus.
Code blocks have folding toggles and outline at the right edge of the gutter next to each block.
When a block is folded, the toggle
appears to the left from the first line of
the block. When a block is expanded, the code folding outline encompasses all the lines in the block
between two fold toggles
.
Folding and expanding code blocks works for the entire classes, method bodies, import lists, comments, HTML and XML tags .
or
.