IntelliJ IDEA 13.1.0 Web Help

Custom code blocks can be represented either by an arbitrary selection, or code constructs not marked with the folding toggles (for example, if or while).

To fold an arbitrary selected block
  1. Select contiguous fragment of code in the editor.
  2. On the main menu, choose Code | Folding | Fold Selection / Remove Region, or press

See Also


Getting Started:

Web Resources: