Difference between revisions of "Keyboard Shortcuts"

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