Select the current code block
To select the current block of C++ code in the code editor, press Ctrl+U.
Press Ctrl+U a second time to extend the selection to the parent block.
To undo the last selection, press 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.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.