Qt Creator Manual

Keyboard Shortcuts

Qt Creator provides various keyboard shortcuts to speed up your development process.

Configuring Keyboard Shortcuts

To customize a keyboard shortcut:

  1. Select Tools > Options... > Environment > Keyboard.
  2. Select an action from the list.
  3. In Key Sequence enter the shortcut key you want to associate with the selected action.

Qt Creator allows you to use different keyboard shortcut mapping schemes:

  • To import a keyboard shortcut mapping scheme, click Import and select the kms file containing keyboard shortcut mapping scheme you want to import.
  • To export the current keyboard shortcut mapping scheme, click Export and select the location where you want to save the exported kms file.

Default Keyboard Shortcuts

The following tables list the default keyboard shortcuts. They are categorized by actions.

General Keyboard Shortcuts

ActionKeyboard shortcut
Open file or projectCtrl+O
New file or projectCtrl+N
Open in external editorAlt+V, Alt+I
CutCtrl+X
CopyCtrl+C
PasteCtrl+V
RedoCtrl+Y
SaveCtrl+S
Save allCtrl+A
Close windowCtrl+W
Close allCtrl+Shift+W
Go backAlt+Left
Go forwardAlt+Right
Go to lineCtrl+L
Next open document in historyCtrl+Shift+Tab
Goto other splitCtrl+E, O
Previous open document in historyCtrl+Tab
Activate LocatorCtrl+K
Switch to Welcome modeCtrl+1
Switch to Edit modeCtrl+2
Switch to Design modeCtrl+3
Switch to Debug modeCtrl+4
Switch to Projects modeCtrl+5
Switch to Help modeCtrl+6
Toggle Build Issues paneAlt+1 (Cmd+1 on Mac OS X)
Toggle Search Results paneAlt+2 (Cmd+2 on Mac OS X)
Toggle Application Output paneAlt+3 (Cmd+3 on Mac OS X)
Toggle Compile Output paneAlt+4 (Cmd+4 on Mac OS X)
Activate Bookmarks paneAlt+M
Activate File System paneAlt+Y
Activate Open Documents paneAlt+O
Activate Projects paneAlt+X
Full screenCtrl+Shift+F11
Toggle the sidebarAlt+0 (Cmd+0 on Mac OS X)
UndoCtrl+Z
Move to Edit mode

In Edit mode:

  • The first press moves focus to the editor
  • The second press closes secondary windows
Esc

Editing Keyboard Shortcuts

ActionKeyboard shortcut
Auto-indent selectionCtrl+I
CollapseCtrl+<
ExpandCtrl+>
Trigger a completion in this scopeCtrl+Space
Copy line downCtrl+Alt+Down
Copy line upCtrl+Alt+Up
Cut lineShift+Del
Join linesCtrl+J
Decrease font sizeCtrl+- (Ctrl+Roll mouse wheel down)
Increase font sizeCtrl++ (Ctrl+Roll mouse wheel up)
Toggle Vim-style editingAlt+V, Alt+V
SplitCtrl+E, 2
Split side by sideCtrl+E, 3
Remove all splitsCtrl+E, 1
Remove current splitCtrl+E, 0
Select allCtrl+A
Go to block endCtrl+]
Go to block startCtrl+[
Go to block end with selectionCtrl+}
Go to block start with selectionCtrl+{
Move current line downCtrl+Shift+Down
Move current line upCtrl+Shift+Up
Trigger a quick fix in this scopeAlt+Return
Rewrap paragraphCtrl+E, R
Select the current block

The second press extends the selection to the parent block

Ctrl+U
Enable text wrappingCtrl+E, Ctrl+W
Toggle comment for selectionCtrl+/
Visualize whitespaceCtrl+E, Ctrl+V
DeleteDel
Adjust sizeCtrl+J
Lay out in a gridCtrl+G
Lay out horizontallyCtrl+H
Lay out verticallyCtrl+L
PreviewAlt+Shift+R
Edit signals and slotsF4
Edit widgetsF3
Toggle bookmarkCtrl+M
Go to next bookmarkCtrl+.
Go to previous bookmarkCtrl+,
Fetch snippetAlt+C, Alt+F
Paste snippetAlt+C, Alt+P
Find usagesCtrl+Shift+U
Follow symbol under cursor

Works with namespaces, classes, methods, variables, include statements and macros

F2
Rename symbol under cursorCtrl+Shift+R
Switch between method declaration and definitionShift+F2
Open type hierarchyCtrl+Shift+T
Switch between header and source fileF4
Turn selected text into lowercaseAlt+U
Turn selected text into uppercaseAlt+Shift+U

Debugging Keyboard Shortcuts

ActionKeyboard shortcut
Start debuggingF5
Stop or interrupt debuggerShift+F5
Reset debuggerCtrl+Shift+F5
Step overF10
Step intoF11
Step outShift+F11
Toggle breakpointF9
Run to selected functionCtrl+F6

Project Keyboard Shortcuts

ActionKeyboard shortcut
Build projectCtrl+B
Build allCtrl+Shift+B
New projectCtrl+Shift+N
RunCtrl+R

Help Keyboard Shortcuts

ActionKeyboard shortcut
View context-sensitive helpF1
Activate contents in Help modeCtrl+T
Add bookmark in Help modeCtrl+M
Activate index in Help modeCtrl+I
Reset font size in Help modeCtrl+0
Activate search in Help modeCtrl+S

Version Control Keyboard Shortcuts

ActionVersion control system
CVSGitPerforceSubversionMercurial
AddAlt+C, Alt+AAlt+G, Alt+AAlt+S, Alt+A
CommitAlt+C, Alt+CAlt+G, Alt+CAlt+H, Alt+C
DiffAlt+C, Alt+DAlt+G, Alt+DAlt+S, Alt+DAlt+H, Alt+D
Diff projectAlt+G, Alt+Shift+DAlt+P, Alt+D
BlameAlt+G, Alt+B
LogAlt+G, Alt+LAlt+P, Alt+FAlt+H, Alt+L
Log projectAlt+G, Alt+K
StatusAlt+G, Alt+SAlt+H, Alt+S
Undo changesAlt+G, Alt+U
Diff projectAlt+G, Alt+Shift+DAlt+P, Alt+D
EditAlt+P, Alt+E
OpenedAlt+P, Alt+O
RevertAlt+P, Alt+R
SubmitAlt+P, Alt+S
X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();