Difference between revisions of "Keyboard Shortcuts"

From Code::Blocks
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== Code::Blocks Shortcut Keys ==
+
[[Category:User Documentation]]
  
This list is not complete ?  If you know more, please do add them.
+
::''Note: You can define your own keyboard shortcuts with the [[Keyboard Shortcuts plugin]]''
  
{| border="1" cellpadding="3" cellspacing="0"
+
== Editor ==
|+Shortcut Keys
+
 
 +
{| border="1" cellpadding="3" cellspacing="0" style="border: 1px solid gray; border-collapse: collapse;"
 +
 
 +
|- style="background: #ececec; border: 1px solid gray"
 +
!Function
 +
!Shortcut Key
 +
|-
 +
 
 +
|-
 +
| Undo last action || Ctrl + Z
 +
|-
 +
 
 +
|-
 +
| Redo last action || Ctrl + Shift + Z
 +
|-
 +
 
 +
|-
 +
| Cut selected text || Ctrl + X
 +
|-
 +
 
 +
|-
 +
| Copy selected text || Ctrl + C
 +
|-
 +
 
 +
|-
 +
| Paste text from clipboard || Ctrl + V
 +
|-
 +
 
 +
|-
 +
| Select all text || Ctrl + A
 +
|-
 +
 
 +
|-
 +
| Swap header / source || F11
 +
|-
 +
 
 +
|-
 +
| Comment highlighted code || Ctrl + Shift + C
 +
|-
 +
 
 +
|-
 +
| Uncomment highlighted code || Ctrl + Shift + X
 +
|-
 +
 
 +
|-
 +
| Duplicate line caret is on || Ctrl + D
 +
|-
 +
 
 +
|-
 +
| Auto-complete / Abbreviations || Ctrl + Space / Ctrl + J
 +
|-
 +
 
 +
|-
 +
| Show call tip || Ctrl + Shift + Space
 +
|-
 +
 
 +
 
 +
|-
 +
| Swap line caret is on with line above it || Ctrl + T
 +
|-
  
 
|-
 
|-
!Function !!Shortcut Key
+
| Toggle bookmark || Ctrl + B
 
|-
 
|-
  
 
|-
 
|-
| Show/hide messages pane || F2
+
| Goto previous bookmark || Alt + PgUp
 
|-
 
|-
  
 
|-
 
|-
| Show/hide project pane || Shift + F2
+
| Goto next bookmark || Alt + PgDown
 
|-
 
|-
  
 
|-
 
|-
| Focus editor || CTRL + Alt + E
+
| Toggle current block folding || F12
 +
|-
 +
 
 +
|-
 +
| Toggle all folds || Shift + F12
 +
|-
 +
 
 +
|}
 +
 
 +
 
 +
This is a list of shortcuts provided by the Code::Blocks' editor component. These shortcuts cannot be rebound.
 +
 
 +
{| border="1" cellpadding="3" cellspacing="0" style="1px solid gray; border-collapse: collapse;"
 +
 
 +
|- style="background: #ececec; border: 1px solid gray"
 +
!Function
 +
!Shortcut Key
 +
|-
 +
 
 +
|-
 +
| Magnify text size. || Ctrl + Keypad "+"
 +
|-
 +
 
 +
|-
 +
| Reduce text size. || Ctrl + Keypad "-"
 +
|-
 +
 
 +
|-
 +
| Restore text size to normal. || Ctrl + Keypad "/"
 +
|-
 +
 
 +
|-
 +
| Cycle through recent files. || Ctrl + Tab
 +
|-
 +
 
 +
|-
 +
| Indent block. || Tab
 +
|-
 +
 
 +
|-
 +
| Dedent block. || Shift + Tab
 +
|-
 +
 
 +
|-
 +
| Delete to start of word. || Ctrl + BackSpace
 +
|-
 +
 
 +
|-
 +
| Delete to end of word. || Ctrl + Delete
 +
|-
 +
 
 +
|-
 +
| Delete to start of line. || Ctrl + Shift + BackSpace
 +
|-
 +
 
 +
|-
 +
| Delete to end of line. || Ctrl + Shift + Delete
 +
|-
 +
 
 +
|-
 +
| Go to start of document. || Ctrl + Home
 +
|-
 +
 
 +
|-
 +
| Extend selection to start of document. || Ctrl + Shift + Home
 +
|-
 +
 
 +
|-
 +
| Go to start of display line. || Alt + Home
 +
|-
 +
 
 +
|-
 +
| Extend selection to start of display line. || Alt + Shift + Home
 +
|-
 +
 
 +
|-
 +
| Go to end of document. || Ctrl + End
 +
|-
 +
 
 +
|-
 +
| Extend selection to end of document. || Ctrl + Shift + End
 +
|-
 +
 
 +
|-
 +
| Go to end of display line. || Alt + End
 +
|-
 +
 
 +
|-
 +
| Extend selection to end of display line. || Alt + Shift + End
 +
|-
 +
 
 +
|-
 +
| Expand or contract a fold point. || Ctrl + Keypad "*"
 +
|-
 +
 
 +
|-
 +
| Create or delete a bookmark. || Ctrl + F2
 +
|-
 +
 
 +
|-
 +
| Go to next bookmark. || F2
 +
|-
 +
 
 +
|-
 +
| Select to next bookmark. || Alt + F2
 +
|-
 +
 
 +
|-
 +
| Find selection. || Ctrl + F3
 +
|-
 +
 
 +
|-
 +
| Find selection backwards. || Ctrl + Shift + F3
 +
|-
 +
 
 +
|-
 +
| Scroll up. || Ctrl + Up
 +
|-
 +
 
 +
|-
 +
| Scroll down. || Ctrl + Down
 +
|-
 +
 
 +
|-
 +
| Line cut. || Ctrl + L
 +
|-
 +
 
 +
|-
 +
| Line copy. || Ctrl + Shift + T
 
|-
 
|-
  
 
|-
 
|-
| Swap header/source || F11
+
| Line delete. || Ctrl + Shift + L
 
|-
 
|-
  
 
|-
 
|-
| Duplicate line caret is on || CTRL + D
+
| Line transpose with previous. || Ctrl + T
 
|-
 
|-
  
 
|-
 
|-
| Auto-complete || CTRL + J / CTRL + Space
+
| Line duplicate. || Ctrl + D
 
|-
 
|-
  
 
|-
 
|-
| Show call tip || CTRL + Shift + Space
+
| Find matching preprocessor conditional, skipping nested ones. || Ctrl + K
 
|-
 
|-
  
 
|-
 
|-
| Delete line caret is on || CTRL + L
+
| Select to matching preprocessor conditional. || Ctrl + Shift + K
 
|-
 
|-
  
 
|-
 
|-
| Swap line caret is on with line above it || CTRL + T
+
| Find matching preprocessor conditional backwards, skipping nested ones. || Ctrl + J
 
|-
 
|-
  
 
|-
 
|-
| Close file currently active in editor || CTRL + W
+
| Select to matching preprocessor conditional backwards. || Ctrl + Shift + J
 
|-
 
|-
  
 
|-
 
|-
| Close current open file || CTRL + F4
+
| Previous paragraph. Shift extends selection. || Ctrl + [
 
|-
 
|-
  
 
|-
 
|-
| Close all open files || CTRL + Shift + F4
+
| Next paragraph. Shift extends selection. || Ctrl + ]
 
|-
 
|-
  
 
|-
 
|-
| Comment highlighted code || CTRL + Shift + C
+
| Previous word. Shift extends selection. || Ctrl + Left
 
|-
 
|-
  
 
|-
 
|-
| Uncomment highlighted code || CTRL + Shift + X
+
| Next word. Shift extends selection. || Ctrl + Right
 
|-
 
|-
  
 
|-
 
|-
| Zoom in/out on editor || CTRL + Roll Mouse Wheel
+
| Previous word part. Shift extends selection. || Ctrl + /
 
|-
 
|-
  
 
|-
 
|-
| Toggle to next file in editor || CTRL + Tab
+
| Next word part. Shift extends selection. || Ctrl + \
 +
|-
 +
 
 +
|}
 +
 
 +
== Files ==
 +
 
 +
{| border="1" cellpadding="3" cellspacing="0" style="border: 1px solid gray; border-collapse: collapse;"
 +
 
 +
|- style="background: #ececec; border: 1px solid gray"
 +
!Function
 +
!Shortcut Key
 
|-
 
|-
  
 
|-
 
|-
| Toggle to previous file in editor || CTRL + Shift + Tab
+
| New file or project || Ctrl + N
 
|-
 
|-
  
 
|-
 
|-
| File / New File || CTRL + N
+
| Open existing file or project || Ctrl + O
 
|-
 
|-
  
 
|-
 
|-
| File / New Project || CTRL + Shift + N
+
| Save current file || Ctrl + S
 
|-
 
|-
  
 
|-
 
|-
| File / Open || CTRL + O
+
| Save all files || Ctrl + Shift + S
 
|-
 
|-
  
 
|-
 
|-
| File / Save || CTRL + S
+
| Close current file || Ctrl + F4 / Ctrl + W
 
|-
 
|-
  
 
|-
 
|-
| File / Save all files || CTRL + Shift + S
+
| Close all files || Ctrl + Shift + F4 / Ctrl + Shift + W
 +
|-
 +
 
 +
|}
 +
 
 +
 
 +
This is a list of shortcuts provided by the Code::Blocks' tab component. These shortcuts cannot be rebound.
 +
 
 +
{| border="1" cellpadding="3" cellspacing="0" style="border: 1px solid gray; border-collapse: collapse;"
 +
 
 +
|- style="background: #ececec; border: 1px solid gray"
 +
!Function
 +
!Shortcut Key
 
|-
 
|-
  
 
|-
 
|-
| File / Close || CTRL + W
+
| Activate next open file || Ctrl + Tab
 
|-
 
|-
  
 
|-
 
|-
| File / Close all || CTRL + Shift + W
+
| Activate previous open file || Ctrl + Shift + Tab
 +
|-
 +
 
 +
|}
 +
 
 +
 
 +
== View ==
 +
 
 +
{| border="1" cellpadding="3" cellspacing="0" style="border: 1px solid gray; border-collapse: collapse;"
 +
 
 +
|- style="background: #ececec; border: 1px solid gray"
 +
!Function
 +
!Shortcut Key
 
|-
 
|-
  
 
|-
 
|-
| File / Quit || CTRL + Q
+
| Show / hide Messages pane || F2
 
|-
 
|-
  
 
|-
 
|-
| Edit / Undo || CTRL + Z
+
| Show / hide Management pane || Shift + F2
 
|-
 
|-
  
 
|-
 
|-
| Edit / Redo || CTRL + Shift + Z
+
| Move project up (in Project tree) || Ctrl + Shift + Up
 
|-
 
|-
  
 
|-
 
|-
| Edit / Cut || CTRL + X
+
| Move project down (in Project tree) || Ctrl + Shift + Down
 
|-
 
|-
  
 
|-
 
|-
| Edit / Copy || CTRL + C
+
| Activate prior (in Project tree) || Alt + F5
 
|-
 
|-
  
 
|-
 
|-
| Edit / Paste || CTRL + V
+
| Activate next (in Project tree) || Alt + F6
 
|-
 
|-
  
 
|-
 
|-
| Edit / Select all || CTRL + A
+
| Zoom in / out || Ctrl + Roll Mouse Wheel
 
|-
 
|-
  
 
|-
 
|-
| Toggle bookmark || CTRL + B
+
| Focus editor || CTRL + Alt + E
 +
|-
 +
 
 +
|}
 +
 
 +
 
 +
== Search ==
 +
 
 +
{| border="1" cellpadding="3" cellspacing="0" style="border: 1px solid gray; border-collapse: collapse;"
 +
 
 +
|- style="background: #ececec; border: 1px solid gray"
 +
!Function
 +
!Shortcut Key
 
|-
 
|-
  
 
|-
 
|-
| Goto previous bookmark || Alt + PgUp
+
| Find || Ctrl + F
 
|-
 
|-
  
 
|-
 
|-
| Goto next bookmark || Alt + PgDown
+
| Find next || F3
 
|-
 
|-
  
 
|-
 
|-
| Toggle current block folding || F12
+
| Find previous || Shift + F3
 
|-
 
|-
  
 
|-
 
|-
| Toggle all folds || Shift + F12
+
| Find in files || Crtl + Shift + F
 
|-
 
|-
  
 
|-
 
|-
| Search / Find || CTRL + F
+
| Replace || Ctrl + R
 
|-
 
|-
  
 
|-
 
|-
| Search / Find next || F3
+
| Replace in files || Ctrl + Shift + R
 
|-
 
|-
  
 
|-
 
|-
| Search / Find previous || Shift + F3
+
| Goto line || Ctrl + G
 
|-
 
|-
  
 
|-
 
|-
| Search / Replace || CTRL + R
+
| Goto next changed line || Ctrl + F3
 
|-
 
|-
  
 
|-
 
|-
| Goto line || CTRL + G
+
| Goto previous changed line || Ctrl + Shift + F3
 
|-
 
|-
  
Line 179: Line 413:
  
 
|-
 
|-
| Goto function || CTRL + Alt + G
+
| Goto function || Ctrl + Alt + G
 
|-
 
|-
  
 
|-
 
|-
| Project tree / Move project up || CTRL + Shift + Up
+
| Goto previous function || Ctrl + PgUp
 
|-
 
|-
  
 
|-
 
|-
| Project tree / Move project down || CTRL + Shift + Down
+
| Goto next function || Ctrl + PgDn
 
|-
 
|-
  
 
|-
 
|-
| Project tree / Activate prior || Alt + F5
+
| Goto declaration || Ctrl + Shift + .
 
|-
 
|-
  
 
|-
 
|-
| Project tree / Activate next || Alt + F6
+
| Goto implementation || Ctrl + .
 
|-
 
|-
  
 
|-
 
|-
| Build || CTRL + F9
+
| Open include file || Ctrl + Alt + .
 +
|-
 +
 
 +
|}
 +
 
 +
== Build ==
 +
 
 +
{| border="1" cellpadding="3" cellspacing="0" style="border: 1px solid gray; border-collapse: collapse;"
 +
 
 +
|- style="background: #ececec; border: 1px solid gray"
 +
!Function
 +
!Shortcut Key
 
|-
 
|-
  
 
|-
 
|-
| Build / Compile current file || CTRL + Shift + F9
+
| Build || Ctrl + F9
 
|-
 
|-
  
 
|-
 
|-
| Run || CTRL + F10
+
| Compile current file || Ctrl + Shift + F9
 
|-
 
|-
  
 
|-
 
|-
| Build & Run || F9
+
| Run || Ctrl + F10
 
|-
 
|-
  
 
|-
 
|-
| Rebuild || CTRL + F11
+
| Build and Run || F9
 
|-
 
|-
  
 
|-
 
|-
| Previous error || Alt + F1
+
| Rebuild || Ctrl + F11
 
|-
 
|-
  
|-
+
|}
| Next error || Alt + F2
+
 
 +
 
 +
== Debug ==
 +
 
 +
{| border="1" cellpadding="3" cellspacing="0" style="border: 1px solid gray; border-collapse: collapse;"
 +
 
 +
|- style="background: #ececec; border: 1px solid gray"
 +
!Function
 +
!Shortcut Key
 
|-
 
|-
  
Line 231: Line 484:
  
 
|-
 
|-
| Debug / Continue || CTRL + F7
+
| Continue debugging || Ctrl + F7
 
|-
 
|-
  
 
|-
 
|-
| Debug / Step over || F7
+
| Step over a code block || F7
 
|-
 
|-
  
 
|-
 
|-
| Debug / Step into || Shift + F7
+
| Step into a code block || Shift + F7
 
|-
 
|-
  
 
|-
 
|-
| Debug / Step out || CTRL + Shift + F7
+
| Step out of a code block || Ctrl + Shift + F7
 
|-
 
|-
  
 
|-
 
|-
| Debug / Toggle breakpoint || F5
+
| Toggle breakpoint || F5
 
|-
 
|-
  
 
|-
 
|-
 
| Run to cursor || F4
 
| Run to cursor || F4
 +
|-
 +
 +
|-
 +
| Previous error || Alt + F1
 +
|-
 +
 +
|-
 +
| Next error || Alt + F2
 
|-
 
|-
  
 
|}
 
|}

Latest revision as of 01:03, 3 January 2009


Note: You can define your own keyboard shortcuts with the Keyboard Shortcuts plugin

Editor

Function Shortcut Key
Undo last action Ctrl + Z
Redo last action Ctrl + Shift + Z
Cut selected text Ctrl + X
Copy selected text Ctrl + C
Paste text from clipboard Ctrl + V
Select all text Ctrl + A
Swap header / source F11
Comment highlighted code Ctrl + Shift + C
Uncomment highlighted code Ctrl + Shift + X
Duplicate line caret is on Ctrl + D
Auto-complete / Abbreviations Ctrl + Space / Ctrl + J
Show call tip Ctrl + Shift + Space
Swap line caret is on with line above it Ctrl + T
Toggle bookmark Ctrl + B
Goto previous bookmark Alt + PgUp
Goto next bookmark Alt + PgDown
Toggle current block folding F12
Toggle all folds Shift + F12


This is a list of shortcuts provided by the Code::Blocks' editor component. These shortcuts cannot be rebound.

Function Shortcut Key
Magnify text size. Ctrl + Keypad "+"
Reduce text size. Ctrl + Keypad "-"
Restore text size to normal. Ctrl + Keypad "/"
Cycle through recent files. Ctrl + Tab
Indent block. Tab
Dedent block. Shift + Tab
Delete to start of word. Ctrl + BackSpace
Delete to end of word. Ctrl + Delete
Delete to start of line. Ctrl + Shift + BackSpace
Delete to end of line. Ctrl + Shift + Delete
Go to start of document. Ctrl + Home
Extend selection to start of document. Ctrl + Shift + Home
Go to start of display line. Alt + Home
Extend selection to start of display line. Alt + Shift + Home
Go to end of document. Ctrl + End
Extend selection to end of document. Ctrl + Shift + End
Go to end of display line. Alt + End
Extend selection to end of display line. Alt + Shift + End
Expand or contract a fold point. Ctrl + Keypad "*"
Create or delete a bookmark. Ctrl + F2
Go to next bookmark. F2
Select to next bookmark. Alt + F2
Find selection. Ctrl + F3
Find selection backwards. Ctrl + Shift + F3
Scroll up. Ctrl + Up
Scroll down. Ctrl + Down
Line cut. Ctrl + L
Line copy. Ctrl + Shift + T
Line delete. Ctrl + Shift + L
Line transpose with previous. Ctrl + T
Line duplicate. Ctrl + D
Find matching preprocessor conditional, skipping nested ones. Ctrl + K
Select to matching preprocessor conditional. Ctrl + Shift + K
Find matching preprocessor conditional backwards, skipping nested ones. Ctrl + J
Select to matching preprocessor conditional backwards. Ctrl + Shift + J
Previous paragraph. Shift extends selection. Ctrl + [
Next paragraph. Shift extends selection. Ctrl + ]
Previous word. Shift extends selection. Ctrl + Left
Next word. Shift extends selection. Ctrl + Right
Previous word part. Shift extends selection. Ctrl + /
Next word part. Shift extends selection. Ctrl + \

Files

Function Shortcut Key
New file or project Ctrl + N
Open existing file or project Ctrl + O
Save current file Ctrl + S
Save all files Ctrl + Shift + S
Close current file Ctrl + F4 / Ctrl + W
Close all files Ctrl + Shift + F4 / Ctrl + Shift + W


This is a list of shortcuts provided by the Code::Blocks' tab component. These shortcuts cannot be rebound.

Function Shortcut Key
Activate next open file Ctrl + Tab
Activate previous open file Ctrl + Shift + Tab


View

Function Shortcut Key
Show / hide Messages pane F2
Show / hide Management pane Shift + F2
Move project up (in Project tree) Ctrl + Shift + Up
Move project down (in Project tree) Ctrl + Shift + Down
Activate prior (in Project tree) Alt + F5
Activate next (in Project tree) Alt + F6
Zoom in / out Ctrl + Roll Mouse Wheel
Focus editor CTRL + Alt + E


Search

Function Shortcut Key
Find Ctrl + F
Find next F3
Find previous Shift + F3
Find in files Crtl + Shift + F
Replace Ctrl + R
Replace in files Ctrl + Shift + R
Goto line Ctrl + G
Goto next changed line Ctrl + F3
Goto previous changed line Ctrl + Shift + F3
Goto file Alt + G
Goto function Ctrl + Alt + G
Goto previous function Ctrl + PgUp
Goto next function Ctrl + PgDn
Goto declaration Ctrl + Shift + .
Goto implementation Ctrl + .
Open include file Ctrl + Alt + .

Build

Function Shortcut Key
Build Ctrl + F9
Compile current file Ctrl + Shift + F9
Run Ctrl + F10
Build and Run F9
Rebuild Ctrl + F11


Debug

Function Shortcut Key
Debug F8
Continue debugging Ctrl + F7
Step over a code block F7
Step into a code block Shift + F7
Step out of a code block Ctrl + Shift + F7
Toggle breakpoint F5
Run to cursor F4
Previous error Alt + F1
Next error Alt + F2