From f474eec40f748aa804f1798b0bf934a6ca3db163 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Fri, 29 Jul 2016 10:00:07 +0200 Subject: Doc: Describe shortcuts for moving within and between blocks - Describe the "Enable smart selection changing" option and the keyboard shortcuts used. - Update screen shot. Change-Id: I6ea08db91d1143c756573e6de8d5a50db994091f Reviewed-by: Alexandru Croitor Reviewed-by: Leena Miettinen --- doc/images/qtcreator-editor-settings.png | Bin 24023 -> 24066 bytes doc/src/editors/creator-editors.qdoc | 11 +++++++++ doc/src/howto/creator-keyboard-shortcuts.qdoc | 27 ++++++++++++++------- .../projects/creator-projects-settings-editor.qdoc | 2 ++ 4 files changed, 31 insertions(+), 9 deletions(-) (limited to 'doc') diff --git a/doc/images/qtcreator-editor-settings.png b/doc/images/qtcreator-editor-settings.png index 9766b153f3..583af66502 100644 Binary files a/doc/images/qtcreator-editor-settings.png and b/doc/images/qtcreator-editor-settings.png differ diff --git a/doc/src/editors/creator-editors.qdoc b/doc/src/editors/creator-editors.qdoc index 35017f9122..bc631612aa 100644 --- a/doc/src/editors/creator-editors.qdoc +++ b/doc/src/editors/creator-editors.qdoc @@ -142,6 +142,17 @@ \uicontrol Tools > \uicontrol Options > \uicontrol {Text Editor} > \uicontrol Display and deselect \uicontrol {Animate matching parentheses}. + You can use keyboard shortcuts to move within and between blocks. To go to + block end, press \key {Ctrl+]} and to go to block start, press + \key {Ctrl+[}. To also select the lines from the cursor position to the end + or beginning of the block, press \key {Ctrl+Shift+]} and + \key {Ctrl+Shift+[}, respectively. + + To select the current block, press \key Ctrl+U. A second key press extends + the selection to the parent block. To undo the last selection, press + \key {Ctrl+Alt+Shift+U}. To enable smart block selection, select + \uicontrol Tools > \uicontrol Options > \uicontrol {Text Editor} > + \uicontrol Behavior > \uicontrol {Enable smart selection changing}. */ diff --git a/doc/src/howto/creator-keyboard-shortcuts.qdoc b/doc/src/howto/creator-keyboard-shortcuts.qdoc index 46257783e0..c8fab9e447 100644 --- a/doc/src/howto/creator-keyboard-shortcuts.qdoc +++ b/doc/src/howto/creator-keyboard-shortcuts.qdoc @@ -337,11 +337,25 @@ \li Go to block start \li Ctrl+[ \row - \li Go to block end with selection - \li Ctrl+} + \li Go to block end and select the lines between the current cursor + position and the end of the block + \li Ctrl+Shift+] \row - \li Go to block start with selection - \li Ctrl+{ + \li Go to block start and select the lines between the current + cursor position and the beginning of the block + \li Ctrl+Shift+[ + \row + \li Select the current block + + The second press extends the selection to the parent block. To + enable this behavior, select \uicontrol Tools > + \uicontrol Options > \uicontrol {Text Editor} > + \uicontrol Behavior > + \uicontrol {Enable smart selection changing}. + \li Ctrl+U + \row + \li Undo the latest smart block selection + \li Ctrl+Alt+Shift+U \row \li Move current line down \li Ctrl+Shift+Down @@ -354,11 +368,6 @@ \row \li Rewrap paragraph \li Ctrl+E, R - \row - \li Select the current block - - The second press extends the selection to the parent block - \li Ctrl+U \row \li Enable text wrapping \li Ctrl+E, Ctrl+W diff --git a/doc/src/projects/creator-projects-settings-editor.qdoc b/doc/src/projects/creator-projects-settings-editor.qdoc index f1f49b90fb..c2b8a108bd 100644 --- a/doc/src/projects/creator-projects-settings-editor.qdoc +++ b/doc/src/projects/creator-projects-settings-editor.qdoc @@ -74,6 +74,8 @@ \li \l{Configuring Fonts} + \li \l{Highlighting and Folding Blocks} + \li \l{Viewing Function Tooltips} \endlist -- cgit v1.2.1