Qt Creator provides various keyboard shortcuts to speed up your development process.
To customize a keyboard shortcut:
Qt Creator allows you to use different keyboard shortcut mapping schemes:
The following tables list the default keyboard shortcuts. They are categorized by actions.
| Action | Keyboard shortcut |
|---|---|
| Open file or project | Ctrl+O |
| New file or project | Ctrl+N |
| Open in external editor | Alt+V, Alt+I |
| Cut | Ctrl+X |
| Copy | Ctrl+C |
| Paste | Ctrl+V |
| Redo | Ctrl+Y |
| Save | Ctrl+S |
| Save all | Ctrl+A |
| Close window | Ctrl+W |
| Close all | Ctrl+Shift+W |
| Go back | Alt+Left |
| Go forward | Alt+Right |
| Go to line | Ctrl+L |
| Next open document in history | Ctrl+Shift+Tab |
| Goto other split | Ctrl+E, O |
| Previous open document in history | Ctrl+Tab |
| Activate Locator | Ctrl+K |
| Switch to Welcome mode | Ctrl+1 |
| Switch to Edit mode | Ctrl+2 |
| Switch to Design mode | Ctrl+3 |
| Switch to Debug mode | Ctrl+4 |
| Switch to Projects mode | Ctrl+5 |
| Switch to Analyze mode | Ctrl+6 |
| Switch to Help mode | Ctrl+7 |
| Toggle Issues pane | Alt+1 (Cmd+1 on Mac OS X) |
| Toggle Search Results pane | Alt+2 (Cmd+2 on Mac OS X) |
| Toggle Application Output pane | Alt+3 (Cmd+3 on Mac OS X) |
| Toggle Compile Output pane | Alt+4 (Cmd+4 on Mac OS X) |
| Activate Bookmarks pane | Alt+M |
| Activate File System pane | Alt+Y |
| Activate Open Documents pane | Alt+O |
| Activate Projects pane | Alt+X |
| Full screen | Ctrl+Shift+F11 |
| Toggle the sidebar | Alt+0 (Cmd+0 on Mac OS X) |
| Undo | Ctrl+Z |
| Move to Edit mode In Edit mode:
| Esc |
| Action | Keyboard shortcut |
|---|---|
| Auto-indent selection | Ctrl+I |
| Collapse | Ctrl+< |
| Expand | Ctrl+> |
| Trigger a completion in this scope | Ctrl+Space |
| Copy line down | Ctrl+Alt+Down |
| Copy line up | Ctrl+Alt+Up |
| Cut line | Shift+Del |
| Join lines | Ctrl+J |
| Decrease font size | Ctrl+- (Ctrl+Roll mouse wheel down) |
| Increase font size | Ctrl++ (Ctrl+Roll mouse wheel up) |
| Toggle Vim-style editing | Alt+V, Alt+V |
| Split | Ctrl+E, 2 |
| Split side by side | Ctrl+E, 3 |
| Remove all splits | Ctrl+E, 1 |
| Remove current split | Ctrl+E, 0 |
| Select all | Ctrl+A |
| Go to block end | Ctrl+] |
| Go to block start | Ctrl+[ |
| Go to block end with selection | Ctrl+} |
| Go to block start with selection | Ctrl+{ |
| Move current line down | Ctrl+Shift+Down |
| Move current line up | Ctrl+Shift+Up |
| Trigger a quick fix in this scope | Alt+Return |
| Rewrap paragraph | Ctrl+E, R |
| Select the current block The second press extends the selection to the parent block | Ctrl+U |
| Enable text wrapping | Ctrl+E, Ctrl+W |
| Toggle comment for selection | Ctrl+/ |
| Visualize whitespace | Ctrl+E, Ctrl+V |
| Delete | Del |
| Adjust size | Ctrl+J |
| Lay out in a grid | Ctrl+G |
| Lay out horizontally | Ctrl+H |
| Lay out vertically | Ctrl+L |
| Preview | Alt+Shift+R |
| Edit signals and slots | F4 |
| Edit widgets | F3 |
| Toggle bookmark | Ctrl+M |
| Go to next bookmark | Ctrl+. |
| Go to previous bookmark | Ctrl+, |
| Fetch snippet | Alt+C, Alt+F |
| Paste snippet | Alt+C, Alt+P |
| Find usages | Ctrl+Shift+U |
| Follow symbol under cursor Works with namespaces, classes, methods, variables, include statements and macros | F2 |
| Rename symbol under cursor | Ctrl+Shift+R |
| Switch between method declaration and definition | Shift+F2 |
| Open type hierarchy | Ctrl+Shift+T |
| Switch between header and source file | F4 |
| Turn selected text into lowercase | Alt+U |
| Turn selected text into uppercase | Alt+Shift+U |
| Run static checks on JavaScript code to find common problems | Ctrl+Shift+C |
| Action | Keyboard shortcut |
|---|---|
| Start debugging | F5 |
| Stop or interrupt debugger | Shift+F5 |
| Reset debugger | Ctrl+Shift+F5 |
| Step over | F10 |
| Step into | F11 |
| Step out | Shift+F11 |
| Toggle breakpoint | F9 |
| Run to selected function | Ctrl+F6 |
| Action | Keyboard shortcut |
|---|---|
| Build project | Ctrl+B |
| Build all | Ctrl+Shift+B |
| New project | Ctrl+Shift+N |
| Run | Ctrl+R |
| Action | Keyboard shortcut |
|---|---|
| View context-sensitive help | F1 |
| Activate contents in Help mode | Ctrl+T |
| Add bookmark in Help mode | Ctrl+M |
| Activate index in Help mode | Ctrl+I |
| Reset font size in Help mode | Ctrl+0 |
| Activate search in Help mode | Ctrl+S |
| Action | Version control system | ||||
|---|---|---|---|---|---|
| CVS | Git | Perforce | Subversion | Mercurial | |
| Add | Alt+C, Alt+A | Alt+G, Alt+A | Alt+S, Alt+A | ||
| Commit | Alt+C, Alt+C | Alt+G, Alt+C | Alt+H, Alt+C | ||
| Diff | Alt+C, Alt+D | Alt+G, Alt+D | Alt+S, Alt+D | Alt+H, Alt+D | |
| Diff project | Alt+G, Alt+Shift+D | Alt+P, Alt+D | |||
| Blame | Alt+G, Alt+B | ||||
| Log | Alt+G, Alt+L | Alt+P, Alt+F | Alt+H, Alt+L | ||
| Log project | Alt+G, Alt+K | ||||
| Status | Alt+G, Alt+S | Alt+H, Alt+S | |||
| Undo changes | Alt+G, Alt+U | ||||
| Diff project | Alt+G, Alt+Shift+D | Alt+P, Alt+D | |||
| Edit | Alt+P, Alt+E | ||||
| Opened | Alt+P, Alt+O | ||||
| Revert | Alt+P, Alt+R | ||||
| Submit | Alt+P, Alt+S | ||||