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

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 Edit Mode.