Collapsing Text

When editing long documents or complex applications, you can hide text and code blocks so that you can focus on just a portion of the content. A customizable marker displays the first few characters of the collapsed selection.

Setting options

To set any of the following collapsing text options, select Options > Settings > Editor > Collapsed Text:

To collapse text in the current document, do one of the following:

To work with collapsed text:


You can drag collapsed text just like regular text blocks.


Collapsed text blocks can be nested within each other.
When you run a search operation or check spelling, collapsed text expands if a match or misspelling is found within the collapsed section.