选择当前代码块

要在代码编辑器中选择当前 C++ 代码块,请按Ctrl+U

再按一次Ctrl+U可将选择范围扩大到父代码块。

要撤销上次选择,请按Ctrl+Alt+Shift+U

打开智能图块选择

要打开智能块选择,请进入首选项>Text Editor >Behavior ,然后选择Enable smart selection changing

文本编辑器首选项中的行为选项卡

另请参阅 如何:编辑代码编辑模式

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.