Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Qt Creator Keyboard Shortcuts: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
m (Added shortcut for toggling between the form editor and source file)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
''Note: This is a work in progress.''
[[Category:Tools::QtCreator]]


=Shortcuts based on activity=
= Shortcuts based on activity =


==Working with the editor==
== Working with the editor ==


{| class="infotable line"
{| class="wikitable"
| Activate Welcome mode
|Activate Welcome mode
| '''<span class="caps">CTRL</span> + 1'''
|'''CTRL + 1'''
|-
|-
| Activate Edit mode
|Activate Edit mode
| '''<span class="caps">CTRL</span> + 2'''
|'''CTRL + 2'''
|-
|-
| Activate Debug mode
|Activate Debug mode
| '''<span class="caps">CTRL</span> + 3'''
|'''CTRL + 3'''
|-
|-
| Activate Projects mode
|Activate Projects mode
| '''<span class="caps">CTRL</span> + 4'''
|'''CTRL + 4'''
|-
|-
| Activate Help mode
|Activate Help mode
| '''<span class="caps">CTRL</span> + 5'''
|'''CTRL + 5'''
|-
|-
| Activate Output mode
|Activate Output mode
| '''<span class="caps">CTRL</span> + 6'''
|'''CTRL + 6'''
|-
|-
| Return to Edit mode
|Return to Edit mode
| '''<span class="caps">ESCAPE</span>'''
|'''ESCAPE'''
|-
|-
| Switch current file
|Switch current file
| '''<span class="caps">CTRL</span> + <span class="caps">TAB</span>'''
|'''CTRL + TAB'''
|-
|-
| Toggle code declaration and definition
|Toggle code declaration and definition
| '''F2'''
|'''F2'''
|-
|-
| Toggle header file and source file
|Toggle header file and source file
| '''F4'''
|'''F4'''
|-
|-
| Toggle Side Bar
|Toggle form editor and source file
| '''<span class="caps">ALT</span> + 0'''
|'''SHIFT + F4'''
|-
|-
| Toggle Build Issues pane
|Toggle Side Bar
| '''<span class="caps">ALT</span> + 1'''
|'''ALT + 0'''
|-
|-
| Toggle Search Results pane
|Toggle Build Issues pane
| '''<span class="caps">ALT</span> + 2'''
|'''ALT + 1'''
|-
|-
| Toggle Application Output pane
|Toggle Search Results pane
| '''<span class="caps">ALT</span> + 3'''
|'''ALT + 2'''
|-
|-
| Toggle Compile Output pane
|Toggle Application Output pane
| '''<span class="caps">ALT</span> + 4'''
|'''ALT + 3'''
|-
|-
| Force code completion
|Toggle Compile Output pane
| '''<span class="caps">CTRL</span> + <span class="caps">SPACE</span>'''
|'''ALT + 4'''
|-
|Force code completion
|'''CTRL + SPACE'''
|}
|}


==Building and debugging==
== Building and debugging ==


{| class="infotable line"
{| class="wikitable"
| Start Debugging
|Start Debugging
| '''F5'''
|'''F5'''
|-
|-
| Stop Debugging
|Stop Debugging
| '''<span class="caps">SHIFT</span> + F5'''
|'''SHIFT + F5'''
|-
|-
| Build current project
|Build current project
| '''<span class="caps">CTRL</span> + B'''
|'''CTRL + B'''
|-
|-
| Build All
|Build All
| '''<span class="caps">CTRL</span> + <span class="caps">SHIFT</span> + B'''
|'''CTRL + SHIFT + B'''
|}
|}


=Shortcuts straight from the menu=
= Shortcuts straight from the menu =


==File shortcuts==
== File shortcuts ==


{| class="infotable line"
{| class="wikitable"
| New File or Project
|New File or Project
| '''<span class="caps">CTRL</span> + N'''
|'''CTRL + N'''
|-
|-
| Open File or Project
|Open File or Project
| '''<span class="caps">CTRL</span> + O'''
|'''CTRL + O'''
|-
|-
| Save current file
|Save current file
| '''<span class="caps">CTRL</span> + S'''
|'''CTRL + S'''
|-
|-
| Save all
|Save all
| '''<span class="caps">CTRL</span> + <span class="caps">SHIFT</span> + S'''
|'''CTRL + SHIFT + S'''
|-
|-
| Close current file
|Close current file
| '''<span class="caps">CTRL</span> + W'''
|'''CTRL + W'''
|-
|-
| Close all
|Close all
| '''<span class="caps">CTRL</span> + <span class="caps">SHIFT</span> + W'''
|'''CTRL + SHIFT + W'''
|-
|-
| Exit
|Exit
| '''<span class="caps">CTRL</span> + Q'''
|'''CTRL + Q'''
|}
|}


==Edit shortcuts==
== Edit shortcuts ==


<nowiki>| Undo | </nowiki>'''<span class="caps">CTRL</span> + Z''' | | Redo | '''<span class="caps">CTRL</span> + Y''' | | Cut | '''<span class="caps">CTRL</span> + X''' | | Copy | '''<span class="caps">CTRL</span> + C''' | | Copy line down | '''<span class="caps">CTRL</span> + <span class="caps">ALT</span> + <span class="caps">DOWN</span>''' | | Copy line up | '''<span class="caps">CTRL</span> + <span class="caps">ALT</span> + UP''' | | Paste | '''<span class="caps">CTRL</span> + V''' | | Select All | '''<span class="caps">CTRL</span> + A'''
{| class="wikitable"
 
| Undo  
{| class="infotable line"
| '''CTRL + Z'''  
|-
| Redo  
| '''CTRL + Y'''  
|-
| Cut  
| '''CTRL + X'''  
|-
| Copy  
| '''CTRL + C'''  
|-
| Copy line down  
| '''CTRL + ALT + DOWN'''  
|-
| Copy line up  
| '''CTRL + ALT + UP'''  
|-
| Paste  
| '''CTRL + V'''  
|-
| Select All  
| '''CTRL + A'''
|-
|-
| Auto-indent Selection
| Auto-indent Selection  
| '''<span class="caps">CTRL</span> + I'''
| '''CTRL + I'''  
|-
|-
| Rewrap Paragraph
| Rewrap Paragraph  
| '''<span class="caps">CTRL</span> + E, R'''
| '''CTRL + E, R'''  
|-
|-
| Visualize Whitespace
| Visualize Whitespace  
| '''<span class="caps">CTRL</span> + E, <span class="caps">CTRL</span> + V'''
| '''CTRL + E, CTRL + V'''  
|-
|-
| Enable Text Wrapping
| Enable Text Wrapping  
| '''<span class="caps">CTRL</span> + E, <span class="caps">CTRL</span> + W'''
| '''CTRL + E, CTRL + W'''  
|-
|-
| (Un)Comment Selection
| (Un)Comment Selection  
| <span class="caps">CTRL</span> + /
| ''' CTRL + / '''
|-
|-
| Collapse
| Collapse  
| '''<span class="caps">CTRL</span> + &lt;'''
| '''CTRL + <'''  
|-
|-
| Expand
| Expand  
| '''<span class="caps">CTRL</span> + &gt;'''
| '''CTRL + >'''  
|-
|-
| Find/Replace
| Find/Replace  
| '''<span class="caps">CTRL</span> + F'''
| '''CTRL + F'''  
|-
|-
| Open Advanced Find
| Open Advanced Find  
| '''<span class="caps">CTRL</span> + <span class="caps">SHIFT</span> + F'''
| '''CTRL + SHIFT + F'''  
|-
|-
| Find next
| Find next  
| '''F3'''
| '''F3'''  
|-
|-
| Find previous
| Find previous  
| '''<span class="caps">SHIFT</span> + F3'''
| '''SHIFT + F3'''  
|-
|-
| Replace and Find next
| Replace and Find next  
| <span class="caps">CTRL</span> + =
| ''' CTRL + = '''
|-
|-
| Go To Line
| Go To Line  
| '''<span class="caps">CTRL</span> + L'''
| '''CTRL + L'''  
|}
|}


==Build shortcuts==
== Build shortcuts ==


{| class="infotable line"
{| class="wikitable"
| Build All
|Build All
| '''<span class="caps">CTRL</span> + <span class="caps">SHIFT</span> + B'''
|'''CTRL + SHIFT + B'''
|-
|-
| Build Project
|Build Project
| '''<span class="caps">CTRL</span> + B'''
|'''CTRL + B'''
|-
|-
| Run
|Run
| '''<span class="caps">CTRL</span> + R'''
|'''CTRL + R'''
|-
|-
| Open Build/Run Target Selector
|Open Build/Run Target Selector
| '''<span class="caps">CTRL</span> + T'''
|'''CTRL + T'''
|}
|}


==Debug shortcuts==
== Debug shortcuts ==


{| class="infotable line"
{| class="wikitable"
| Start Debugging
|Start Debugging
| '''F5'''
|'''F5'''
|-
|-
| Stop Debugging
|Stop Debugging
| '''<span class="caps">SHIFT</span> + F5'''
|'''SHIFT + F5'''
|-
|-
| Step Over
|Step Over
| '''F10'''
|'''F10'''
|-
|-
| Step Into
|Step Into
| '''F11'''
|'''F11'''
|-
|-
| Step Out
|Step Out
| '''<span class="caps">SHIFT</span> + F11'''
|'''SHIFT + F11'''
|-
|-
| Reverse Direction
|Reverse Direction
| '''F12'''
|'''F12'''
|-
|-
| Snapshot
|Snapshot
| '''<span class="caps">ALT</span> + D, <span class="caps">ALT</span> + S'''
|'''ALT + D, ALT + S'''
|-
|-
| Toggle Breakpoint
|Toggle Breakpoint
| '''F9'''
|'''F9'''
|}
|}


==Tools shortcuts==
== Tools shortcuts ==


{| class="infotable line"
{| class="wikitable"
| Locate
|Locate
| '''<span class="caps">CTRL</span> + K'''
|'''CTRL + K'''
|-
|-
| Toggle Bookmarks
|Toggle Bookmarks
| '''<span class="caps">CTRL</span> + M'''
|'''CTRL + M'''
|-
|-
| Previous Bookmark
|Previous Bookmark
| <span class="caps">CTRL</span> + ,
|'''CTRL + , '''
|-
|-
| Next Bookmark
|Next Bookmark
| <span class="caps">CTRL</span> + .
|'''CTRL + . '''
|-
|-
| Switch Header/Source
|Switch Header/Source
| '''F4'''
|'''F4'''
|}
|}
==Window shortcuts==
==Help shortcuts==
=References=
* [http://doc.qt.nokia.com/qtcreator/creator-keyboard-shortcuts.html Keyboard Shortcuts from Qt Creator documentation…] ''[doc.qt.nokia.com]''
===Categories:===
* [[:Category:Tools|Tools]]
** [[:Category:Tools::QtCreator|QtCreator]]

Latest revision as of 08:20, 27 July 2016


Shortcuts based on activity

Working with the editor

Activate Welcome mode CTRL + 1
Activate Edit mode CTRL + 2
Activate Debug mode CTRL + 3
Activate Projects mode CTRL + 4
Activate Help mode CTRL + 5
Activate Output mode CTRL + 6
Return to Edit mode ESCAPE
Switch current file CTRL + TAB
Toggle code declaration and definition F2
Toggle header file and source file F4
Toggle form editor and source file SHIFT + F4
Toggle Side Bar ALT + 0
Toggle Build Issues pane ALT + 1
Toggle Search Results pane ALT + 2
Toggle Application Output pane ALT + 3
Toggle Compile Output pane ALT + 4
Force code completion CTRL + SPACE

Building and debugging

Start Debugging F5
Stop Debugging SHIFT + F5
Build current project CTRL + B
Build All CTRL + SHIFT + B

Shortcuts straight from the menu

File shortcuts

New File or Project CTRL + N
Open File or Project CTRL + O
Save current file CTRL + S
Save all CTRL + SHIFT + S
Close current file CTRL + W
Close all CTRL + SHIFT + W
Exit CTRL + Q

Edit shortcuts

Undo CTRL + Z
Redo CTRL + Y
Cut CTRL + X
Copy CTRL + C
Copy line down CTRL + ALT + DOWN
Copy line up CTRL + ALT + UP
Paste CTRL + V
Select All CTRL + A
Auto-indent Selection CTRL + I
Rewrap Paragraph CTRL + E, R
Visualize Whitespace CTRL + E, CTRL + V
Enable Text Wrapping CTRL + E, CTRL + W
(Un)Comment Selection CTRL + /
Collapse CTRL + <
Expand CTRL + >
Find/Replace CTRL + F
Open Advanced Find CTRL + SHIFT + F
Find next F3
Find previous SHIFT + F3
Replace and Find next CTRL + =
Go To Line CTRL + L

Build shortcuts

Build All CTRL + SHIFT + B
Build Project CTRL + B
Run CTRL + R
Open Build/Run Target Selector CTRL + T

Debug shortcuts

Start Debugging F5
Stop Debugging SHIFT + F5
Step Over F10
Step Into F11
Step Out SHIFT + F11
Reverse Direction F12
Snapshot ALT + D, ALT + S
Toggle Breakpoint F9

Tools shortcuts

Locate CTRL + K
Toggle Bookmarks CTRL + M
Previous Bookmark CTRL + ,
Next Bookmark CTRL + .
Switch Header/Source F4