Select the current code block | Qt Creator Documentation

- Qt Creator Documentation
- Select the current code block
- Qt Creator 19.0.1

Record text editing macros ◦ Specify Qt Quick code style

# Select the current code block

To select the current block of C++ code in the code editor, select Ctrl+U.

Select Ctrl+U a second time to extend the selection to the parent block.

To undo the last selection, select Ctrl+Alt+Shift+U.

## Turn on smart block selection

To turn on smart block selection, go to Preferences > Text Editor > Behavior and select Enable smart selection changing.

See also How to: Edit code and Editing code.

Record text editing macros ◦ Specify Qt Quick code style