Highlight code blocks

Block highlighting visually separates parts of the code that belong together. For example, when you place the cursor within a set of braces, the code enclosed in braces is highlighted.

{A code block highlighted in the editor}

To enable block highlighting, go to Preferences > Text Editor > Display and select Highlight blocks.

Fold code blocks

Select the folding markers to collapse and expand blocks of code within braces. In the image above, the folding markers are located between the line number and the text pane.

To show the folding markers, go to Preferences > Text Editor > Display and select Display folding markers. This option is enabled by default.

{Text Editor Display preferences}

Animate matching braces

When the cursor is on a brace, the matching brace is animated by default.

To turn off the animation and just highlight the block and the braces, go to Preferences > Text Editor > Display and clear Animate matching parentheses.

See also Code.

Available under certain Qt licenses.
Find out more.