Collapse blocks. This command blocks a level at a time. If you keep collapsing the blocks, the entire code will be collapsed, except for lines that are not in blocks.
Ctrl + F9
Expand blocks. This command expands a level at the time
Ctrl +F10
Collapse the block containing the line that has the editor focus
Ctrl + Shift + F9
Expand the collapsed block that has the editor focus