Hideshow mode is a buffer-local minor mode that allows you to selectively display portions of a program, which are referred to as blocks. Type M-x hs-minor-mode to toggle this minor mode (see Minor Modes).
When you use Hideshow mode to hide a block, the block disappears from the screen, to be replaced by an ellipsis (three periods in a row). Just what constitutes a block depends on the major mode. In C mode and related modes, blocks are delimited by braces, while in Lisp mode they are delimited by parentheses. Multi-line comments also count as blocks.
Hideshow mode provides the following commands:
These variables can be used to customize Hideshow mode:
nil, C-c @ C-M-h (
hs-hide-all) hides comments too.
code(unhide only code blocks),
comment(unhide only comments),
t(unhide both code blocks and comments), or
nil(unhide neither code blocks nor comments). The default value is