Home · Editor · Code Navigation · Shortcuts · Wiki

[Previous: Tips and Tricks] [Qt Creator Manual] [Next: Glossary]

Keyboard Shortcuts

Qt Creator provides various keyboard shortcuts to aid in the development process. These shortcuts are listed in the table below:

FunctionKey Combination
Activate Welcome modeCtrl + 1
Activate Edit modeCtrl + 2
Activate Debug modeCtrl + 3
Activate Projects modeCtrl + 4
Activate Help modeCtrl + 5
Activate Output modeCtrl + 6
FindCtrl + F
Find nextF3
Go back to the code editor (Edit mode: The first press gives the editor focus, without closing secondary windows; the second press closes all secondary windows. Debug mode or Help mode: Switch to Edit mode.)Esc
Go to a lineCtrl + L
Navigate between pagesAlt + Left, Alt + Right
Start debuggingF5
Stop debuggingShift + F5
Toggle code declaration and definitionF2
Toggle header file and source fileF4
Toggle SidebarAlt + 0 / Cmd + 0
Toggle Build Issues paneAlt + 1 / Cmd + 1
Toggle Search Results paneAlt + 2 / Cmd + 2
Toggle Application Output paneAlt + 3 / Cmd + 3
Toggle Compile Output paneAlt + 4 / Cmd + 4

The table below lists keyboard shortcuts supported by the code editor.

Block navigationTo navigate between blocks, e.g., from one { to another }, press Ctrl+[ and Ctrl+].
Block selectionTo select the current block, press Ctrl+U. Pressing Ctrl+U again extends the selection to the parent block. To deselect, press Ctrl+Shift+U.
Moving lines up and downPress Ctrl+Shift+Up and Ctrl+Shift+Down
CompletionPress Ctrl+Space
Indenting BlocksPress Ctrl+I
CollapsePress Ctrl+<
Commenting or uncommenting blocksPress Ctrl+/
Delete a linePress Shift+Del
Switch between header file and source filePress F4.
Increasing and decreasing font sizePress Ctrl+Scroll Wheel
Follow symbols under the cursorPress F2 and Shift+F2. This feature works with namespaces, classes, methods, variables, include statements, and macros.

[Previous: Tips and Tricks] [Qt Creator Manual] [Next: Glossary]


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Creator 1.3.0