Keyboard Shortcuts

Qt Design Studio has various keyboard shortcuts that speed up your development process. To view all Qt Design Studio functions in and their keyboard shortcuts, select Preferences > Environment > Keyboard.

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 Preferences > 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 Environment preferences}

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

General Keyboard Shortcuts

ActionKeyboard shortcut
Open file or projectCtrl+O
New projectCtrl+Shift+N
New fileCtrl+N
Select allCtrl+A
DeleteDel
CutCtrl+X
CopyCtrl+C
PasteCtrl+V
UndoCtrl+Z
RedoCtrl+Y
PrintCtrl+P
SaveCtrl+S
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
Locate files and other content within the projectCtrl+K
Next open document in historyCtrl+Shift+Tab
Previous open document in historyCtrl+Tab
Toggle Menu Bar visibilityCtrl+Alt+M
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 IssuesAlt+1 (Cmd+1 on macOS)
Toggle Search ResultsAlt+2 (Cmd+2 on macOS)
Toggle Application OutputAlt+3 (Cmd+3 on macOS)
Toggle Compile OutputAlt+4 (Cmd+4 on macOS)
Toggle TerminalAlt+5 (Cmd+5 on macOS)
Toggle Version ControlAlt+6 (Cmd+6 on macOS)
Toggle QML Debugger ConsoleAlt+7 (Cmd+7 on macOS)
Toggle General MessagesAlt+8 (Cmd+8 on macOS)
Maximize output viewsAlt+Shift+9
Move to next item in outputF6
Move to previous item in outputShift+F6
Activate Projects viewAlt+X
Activate Open Documents viewAlt+O
Activate File System viewAlt+Y, Alt+F
Toggle left sidebarAlt+0 (Cmd+0 on macOS)
Toggle right sidebarAlt+Shift+0
Full screenCtrl+Shift+F11
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 Preferences > Environment > System.

Ctrl+Q

Design Mode Keyboard Shortcuts

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

ActionKeyboard shortcut
Open the project with Live Preview.Alt+P (Opt+P on macOS)
Open the QML file that defines the selected component.F2
Jump to the Code view.F4

Editing Keyboard Shortcuts

ActionKeyboard shortcut
Auto-indent selectionCtrl+I
CollapseCtrl+<
ExpandCtrl+>
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
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
SplitCtrl+E, 2
Split side by sideCtrl+E, 3
Remove all splitsCtrl+E, 1
Remove current splitCtrl+E, 0
Go to next splitCtrl+E, O
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 Preferences > Text Editor > Behavior > Enable smart selection changing.

Ctrl+U
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
Find references to symbol under cursorCtrl+Shift+U
Follow symbol under cursor

Works with namespaces, classes, functions, variables, include statements, and macros, as well as CMake functions, macros, targets, and packages. Also, opens URLs in the default browser.

F2
Rename symbol under cursorCtrl+Shift+R
Switch between function declaration and definitionShift+F2
Open type hierarchyCtrl+Shift+T
Add a cursor at the next occurrence of selected text for multi-cursor editingCtrl+D
Turn selected text into lowercaseAlt+U
Turn selected text into uppercaseAlt+Shift+U
Sort selected lines alphabeticallyAlt+Shift+S
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

Project Keyboard Shortcuts

ActionKeyboard shortcut
New projectCtrl+Shift+N
Load projectCtrl+Shift+O
RunCtrl+R

Help Keyboard Shortcuts

ActionKeyboard shortcut
View context-sensitive helpF1
Add bookmark in Help modeCtrl+M
Activate index in Help modeCtrl+Shift+I
Activate search in Help modeCtrl+Shift+/
Activate bookmarks in Help mode Ctrl+Shift+B
Activate contents in Help modeCtrl+Shift+C

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

See also Assign keyboard shortcuts, Find keyboard shortcuts, and Import and export keyboard shortcuts.

Available under certain Qt licenses.
Find out more.