Keyboard Shortcuts

Qt Design Studio provides various keyboard shortcuts to speed up your development process. You can add more shortcuts if your favorite combination is missing. In addition, you can specify your own keyboard shortcuts for some functions that can be easily performed with a mouse, and therefore do not appear in menus or have default keyboard shortcuts. For example, selecting and deleting words or lines in an editor.

To view all functions available in Qt Design Studio and the keyboard shortcuts defined for them, select Tools > Options > Environment > Keyboard. The shortcuts are listed by category. To find a keyboard shortcut in the list, enter a function name or shortcut in the Filter field.

The shortcuts that are displayed in red color are associated with several functions. Qt Design Studio executes the function that is available in the current context. If several functions are available for the same shortcut at a time, there is a conflict and Qt Design Studio cannot execute any function.

A keyboard shortcut might also conflict with a shortcut that a Window manager uses for its own purposes. In that case, Qt Design Studio shortcuts do not work. Typically, you can configure the shortcuts in the window manager, but if that is not allowed, you can change the Qt Design Studio shortcuts.

To override the platform default value that determines whether keyboard shortcuts are shown in the labels of context menu items, select Tools > Options > Environment > Interface. The label of the Show keyboard shortcuts in context menus check box indicates whether the platform default value is on or off.

"Interface tab in the Environment options"

Configuring Keyboard Shortcuts

To customize a keyboard shortcut:

  1. Select Tools > Options > Environment > Keyboard.
  2. Select a command from the list.
  3. In the Key Sequence field, you have the following options:
    • Enter the shortcut key you want to associate with the selected command.
    • Select Record, press the keys to use as the keyboard shortcut, and select Stop Recording when you are done.
  4. To assign multiple keyboard shortcuts to a function, select Add, and enter or record an additional key combination.
  5. To revert to the default shortcut, select Reset.

Qt Design Studio allows you to use different keyboard shortcut mapping schemes:

  • To import a keyboard shortcut mapping scheme, click Import and select the .kms file containing the 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
Select allCtrl+A
Save allCtrl+Shift+S
Close windowCtrl+W
Close allCtrl+Shift+W
Close current fileCtrl+F4
Go backAlt+Left
Go forwardAlt+Right
Go to lineCtrl+L
Next open document in historyCtrl+Shift+Tab
Go to 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 Issues paneAlt+1 (Cmd+1 on macOS)
Toggle Search Results paneAlt+2 (Cmd+2 on macOS)
Toggle Application Output paneAlt+3 (Cmd+3 on macOS)
Toggle Compile Output paneAlt+4 (Cmd+4 on macOS)
Toggle other output panesAlt+number (Cmd+number on macOS)

Where the number is the number of the output pane.

Activate File System viewAlt+Y
Activate Open Documents viewAlt+O
Maximize output panesAlt+9
Move to next item in output panesF6
Move to previous item in output panesShift+F6
Activate Projects viewAlt+X
Full screenCtrl+Shift+F11
Toggle the sidebarAlt+0 (Cmd+0 on macOS)
Move to Edit mode

In Edit mode:

  • The first press moves focus to the editor
  • The second press closes secondary windows
Exit Qt Design Studio

By default, Qt Design Studio exits without asking for confirmation, unless there are unsaved changes in open files. To always be asked, select the Ask for confirmation before exiting check box in Tools > Options > Environment > System.


Editing Keyboard Shortcuts

ActionKeyboard shortcut
Auto-indent selectionCtrl+I
Trigger a completion in this scopeCtrl+Space
Display tooltips for function signatures regardless of the cursor position in the function callCtrl+Shift+D
Copy lineCtrl+Ins
Copy line downCtrl+Alt+Down
Copy line upCtrl+Alt+Up
Paste from the clipboard historyCtrl+Shift+V

Subsequent presses move you back in the history

Cut lineShift+Del
Join linesCtrl+J
Insert line above current lineCtrl+Shift+Enter
Insert line below current lineCtrl+Enter
Decrease font sizeCtrl+- (Ctrl+Roll mouse wheel down)
Increase font sizeCtrl++ (Ctrl+Roll mouse wheel up)
Reset font sizeCtrl+0
Toggle Vim-style editingAlt+Y, Alt+Y
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 and select the lines between the current cursor position and the end of the blockCtrl+Shift+]
Go to block start and select the lines between the current cursor position and the beginning of the blockCtrl+Shift+[
Select the current block

The second press extends the selection to the parent block. To enable this behavior, select Tools > Options > Text Editor > Behavior > Enable smart selection changing.

Undo the latest smart block selectionCtrl+Alt+Shift+U
Move current line downCtrl+Shift+Down
Move current line upCtrl+Shift+Up
Trigger a refactoring action in this scopeAlt+Enter
Rewrap paragraphCtrl+E, R
Enable text wrappingCtrl+E, Ctrl+W
Toggle comment for selectionCtrl+/
Visualize whitespaceCtrl+E, Ctrl+V
Adjust sizeCtrl+J
Lay out in a gridCtrl+G
Lay out horizontallyCtrl+H
Lay out verticallyCtrl+L
Find references to symbol under cursorCtrl+Shift+U
Follow symbol under cursor

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

Rename symbol under cursorCtrl+Shift+R
Switch between function declaration and definitionShift+F2
Open type hierarchyCtrl+Shift+T
Turn selected text into lowercaseAlt+U
Turn selected text into uppercaseAlt+Shift+U
Run static checks on JavaScript code to find common problemsCtrl+Shift+C
Find and replaceCtrl+F
Find nextF3
Find previousShift+F3
Find next occurrence of selected textCtrl+F3
Find previous occurrence of selected textCtrl+Shift+F3
Replace nextCtrl+=
Open advanced findCtrl+Shift+F

Design Mode Keyboard Shortcuts

You can use the following keyboard shortcuts when editing QML files in the Design mode.

ActionKeyboard shortcut
Open the QML file that defines the selected componentF2
Move between Text Editor and Form EditorF4
Toggle left sidebarCtrl+Alt+0
Toggle right sidebarCtrl+Alt+Shift+0

Debugging Keyboard Shortcuts

ActionKeyboard shortcut
Start or continue debuggingF5
Exit debuggerShift+F5
Step overF10
Step intoF11
Step outShift+F11
Toggle breakpointF9
Run to selected functionCtrl+F6
Run to lineCtrl+F10
Reverse directionF12

Project Keyboard Shortcuts

ActionKeyboard shortcut
New projectCtrl+Shift+N
Open projectCtrl+Shift+O

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 sizeCtrl+0
Activate search in Help modeCtrl+S

Version Control Keyboard Shortcuts

ActionKeyboard shortcut
Stage file for commitAlt+G, Alt+A
CommitAlt+G, Alt+C
Diff current fileAlt+G, Alt+D
Diff projectAlt+G, Alt+Shift+D
BlameAlt+G, Alt+B
Log current fileAlt+G, Alt+L
Log projectAlt+G, Alt+K
ResetAlt+G, Alt+U

Available under certain Qt licenses.
Find out more.