IntelliJ IDEA 14.0.0 Web Help

Folding and Expanding Custom Blocks

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 Ctrl+Period

See Also

Last modified: 12 November 2014
comments powered by Disqus