Keyboard Shortcuts: Difference between revisions

From Code::Blocks
Artojon (talk | contribs)
m note about keybinder plugin
Artojon (talk | contribs)
reformatted all shortcuts to categories, added information about keys that cannot be rebinded, all shortcuts now have a textual description
Line 3: Line 3:
::''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
|-
|-


|-
|-
| Show/hide project pane || Shift + F2
| Redo last action || Ctrl + Shift + Z
|-
|-


|-
|-
| Focus editor || CTRL + Alt + E
| Cut selected text || Ctrl + X
|-
|-


|-
|-
| Swap header/source || F11
| Copy selected text || Ctrl + C
|-
|-


|-
|-
| Duplicate line caret is on || Ctrl + D
| Paste text from clipboard || Ctrl + V
|-
|-


|-
|-
| Auto-complete || Ctrl + J / Ctrl + Space
| Select all text || Ctrl + A
|-
|-


|-
|-
| Show call tip || Ctrl + Shift + Space
| Swap header / source || F11
|-
|-


|-
|-
| Delete line caret is on || Ctrl + L
| Comment highlighted code || Ctrl + Shift + C
|-
|-


|-
|-
| Swap line caret is on with line above it || Ctrl + T
| Uncomment highlighted code || Ctrl + Shift + X
|-
|-


|-
|-
| Close file currently active in editor || Ctrl + W
| Duplicate line caret is on || Ctrl + D
|-
|-


|-
|-
| Close current open file || Ctrl + F4
| Auto-complete || Ctrl + J / Ctrl + Space
|-
|-


|-
|-
| Close all open files || Ctrl + Shift + F4
| Show call tip || Ctrl + Shift + Space
|-
|-


|-
|-
| Comment highlighted code || Ctrl + Shift + C
| Delete line caret is on || Ctrl + L
|-
|-


|-
|-
| Uncomment highlighted code || Ctrl + Shift + X
| Swap line caret is on with line above it || Ctrl + T
|-
|-


|-
|-
| Zoom in/out on editor || Ctrl + Roll Mouse Wheel
| Toggle bookmark || Ctrl + B
|-
|-


|-
|-
| Toggle to next file in editor || Ctrl + Tab
| Goto previous bookmark || Alt + PgUp
|-
|-


|-
|-
| Toggle to previous file in editor || Ctrl + Shift + Tab
| Goto next bookmark || Alt + PgDown
|-
|-


|-
|-
| File / New File || Ctrl + N
| Toggle current block folding || F12
|-
|-


|-
|-
| File / New Project || Ctrl + Shift + N
| Toggle all folds || Shift + F12
|-
|-


|-
|}
| File / Open || Ctrl + O
 
 
This is a list of shortcuts provided by the Code::Blocks' editor component. These shortcuts cannot be rebinded.
 
{| border="1" cellpadding="3" cellspacing="0" style="1px solid gray; border-collapse: collapse;"
 
|- style="background: #ececec; border: 1px solid gray"
!Function
!Shortcut Key
|-
|-


|-
|-
| File / Save || Ctrl + S
| Magnify text size. || Ctrl + Keypad "+"
|-
|-


|-
|-
| File / Save all files || Ctrl + Shift + S
| Reduce text size. || Ctrl + Keypad "-"
|-
|-


|-
|-
| File / Close || Ctrl + W
| Restore text size to normal. || Ctrl + Keypad "/"
|-
|-


|-
|-
| File / Close all || Ctrl + Shift + W
| Cycle through recent files. || Ctrl + Tab
|-
|-


|-
|-
| File / Quit || Ctrl + Q
| Indent block. || Tab
|-
|-


|-
|-
| Edit / Undo || Ctrl + Z
| Dedent block. || Shift + Tab
|-
|-


|-
|-
| Edit / Redo || Ctrl + Shift + Z
| Delete to start of word. || Ctrl + BackSpace
|-
|-


|-
|-
| Edit / Cut || Ctrl + X
| Delete to end of word. || Ctrl + Delete
|-
|-


|-
|-
| Edit / Copy || Ctrl + C
| Delete to start of line. || Ctrl + Shift + BackSpace
|-
|-


|-
|-
| Edit / Paste || Ctrl + V
| Delete to end of line. || Ctrl + Shift + Delete
|-
|-


|-
|-
| Edit / Select all || Ctrl + A
| Go to start of document. || Ctrl + Home
|-
|-


|-
|-
| Toggle bookmark || Ctrl + B
| Extend selection to start of document. || Ctrl + Shift + Home
|-
|-


|-
|-
| Goto previous bookmark || Alt + PgUp
| Go to start of display line. || Alt + Home
|-
|-


|-
|-
| Goto next bookmark || Alt + PgDown
| Extend selection to start of display line. || Alt + Shift + Home
|-
|-


|-
|-
| Toggle current block folding || F12
| Go to end of document. || Ctrl + End
|-
|-


|-
|-
| Toggle all folds || Shift + F12
| Extend selection to end of document. || Ctrl + Shift + End
|-
|-


|-
|-
| Search / Find || CTRL + F
| Go to end of display line. || Alt + End
|-
|-


|-
|-
| Search / Find next || F3
| Extend selection to end of display line. || Alt + Shift + End
|-
|-


|-
|-
| Search / Find previous || Shift + F3
| Expand or contract a fold point. || Ctrl + Keypad "*"
|-
|-


|-
|-
| Search / Replace || Ctrl + R
| Create or delete a bookmark. || Ctrl + F2
|-
|-


|-
|-
| Goto line || Ctrl + G
| Go to next bookmark. || F2
|-
|-


|-
|-
| Goto file || Alt + G
| Select to next bookmark. || Alt + F2
|-
|-


|-
|-
| Goto function || Ctrl + Alt + G
| Find selection. || Ctrl + F3
|-
|-


|-
|-
| Project tree / Move project up || Ctrl + Shift + Up
| Find selection backwards. || Ctrl + Shift + F3
|-
|-


|-
|-
| Project tree / Move project down || Ctrl + Shift + Down
| Scroll up. || Ctrl + Up
|-
|-


|-
|-
| Project tree / Activate prior || Alt + F5
| Scroll down. || Ctrl + Down
|-
|-


|-
|-
| Project tree / Activate next || Alt + F6
| Line cut. || Ctrl + L
|-
|-


|-
|-
| Build || Ctrl + F9
| Line copy. || Ctrl + Shift + T
|-
|-


|-
|-
| Build / Compile current file || Ctrl + Shift + F9
| Line delete. || Ctrl + Shift + L
|-
|-


|-
|-
| Run || Ctrl + F10
| Line transpose with previous. || Ctrl + T
|-
|-


|-
|-
| Build & Run || F9
| Line duplicate. || Ctrl + D
|-
|-


|-
|-
| Rebuild || Ctrl + F11
| Find matching preprocessor conditional, skipping nested ones. || Ctrl + K
|-
|-


|-
|-
| Previous error || Alt + F1
| Select to matching preprocessor conditional. || Ctrl + Shift + K
|-
|-


|-
|-
| Next error || Alt + F2
| Find matching preprocessor conditional backwards, skipping nested ones. || Ctrl + J
|-
|-


|-
|-
| Debug || F8
| Select to matching preprocessor conditional backwards. || Ctrl + Shift + J
|-
|-


|-
|-
| Debug / Continue || Ctrl + F7
| Previous paragraph. Shift extends selection. || Ctrl + [
|-
|-


|-
|-
| Debug / Step over || F7
| Next paragraph. Shift extends selection. || Ctrl + ]
|-
|-


|-
|-
| Debug / Step into || Shift + F7
| Previous word. Shift extends selection. || Ctrl + Left
|-
|-


|-
|-
| Debug / Step out || Ctrl + Shift + F7
| Next word. Shift extends selection. || Ctrl + Right
|-
|-


|-
|-
| Debug / Toggle breakpoint || F5
| Previous word part. Shift extends selection. || Ctrl + /
|-
|-


|-
|-
| Run to cursor || F4
| Next word part. Shift extends selection. || Ctrl + \
|-
|-


|}
|}


== Editor shortcut keys ==


This is a list of shortcuts used by the Code::Blocks editor (wxScintilla).
== Files ==


{| 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 277:


|-
|-
|Magnify text size. || Ctrl + Keypad "+"
| New file or project || Ctrl + N
|-
|-


|-
|-
|Reduce text size. || Ctrl + Keypad "-"
| Open existing file or project || Ctrl + O
|-
|-


|-
|-
|Restore text size to normal. || Ctrl + Keypad "/"
| Save current file || Ctrl + S
|-
|-


|-
|-
|Cycle through recent files. || Ctrl + Tab
| Save all files || Ctrl + Shift + S
|-
|-


|-
|-
|Indent block. || Tab
| Close current file || Ctrl + F4 / Ctrl + W
|-
|-


|-
|-
|Dedent block. || Shift + Tab
| 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 rebinded.
 
{| border="1" cellpadding="3" cellspacing="0" style="border: 1px solid gray; border-collapse: collapse;"
 
|- style="background: #ececec; border: 1px solid gray"
!Function
!Shortcut Key
|-
|-


|-
|-
|Delete to start of word. || Ctrl + BackSpace
| Activate next open file || Ctrl + Tab
|-
|-


|-
|-
|Delete to end of word. || Ctrl + Delete
| Activate previous open file || Ctrl + Shift + Tab
|-
|-


|-
|}
|Delete to start of line. || Ctrl + Shift + BackSpace
 
 
== 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
|-
|-


|-
|-
|Delete to end of line. || Ctrl + Shift + Delete
| Show / hide Messages pane || F2
|-
|-


|-
|-
|Go to start of document. || Ctrl + Home
| Show / hide Management pane || Shift + F2
|-
|-


|-
|-
|Extend selection to start of document. || Ctrl + Shift + Home
| Move project up (in Project tree) || Ctrl + Shift + Up
|-
|-


|-
|-
|Go to start of display line. || Alt + Home
| Move project down (in Project tree) || Ctrl + Shift + Down
|-
|-


|-
|-
|Extend selection to start of display line. || Alt + Shift + Home
| Activate prior (in Project tree) || Alt + F5
|-
|-


|-
|-
|Go to end of document. || Ctrl + End
| Activate next (in Project tree) || Alt + F6
|-
|-


|-
|-
|Extend selection to end of document. || Ctrl + Shift + End
| Zoom in / out || Ctrl + Roll Mouse Wheel
|-
|-


|-
|-
|Go to end of display line. || Alt + End
| Focus editor || CTRL + Alt + E
|-
|-


|-
|}
|Extend selection to end of display line. || Alt + Shift + End
 
 
== 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
|-
|-


|-
|-
|Expand or contract a fold point. || Ctrl + Keypad "*"
| Find || CTRL + F
|-
|-


|-
|-
|Create or delete a bookmark. || Ctrl + F2
| Find next || F3
|-
|-


|-
|-
|Go to next bookmark. || F2
| Find previous || Shift + F3
|-
|-


|-
|-
|Select to next bookmark. || Alt + F2
| Replace || Ctrl + R
|-
|-


|-
|-
|Find selection. || Ctrl + F3
| Goto line || Ctrl + G
|-
|-


|-
|-
|Find selection backwards. || Ctrl + Shift + F3
| Goto file || Alt + G
|-
|-


|-
|-
|Scroll up. || Ctrl + Up
| Goto function || Ctrl + Alt + G
|-
|-


|-
|}
|Scroll down. || Ctrl + Down
 
 
== 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
|-
|-


|}
|}

Revision as of 16:08, 9 July 2006


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 Ctrl + J / Ctrl + 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
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 rebinded.

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 rebinded.

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


Function Shortcut Key
Find CTRL + F
Find next F3
Find previous Shift + F3
Replace Ctrl + R
Goto line Ctrl + G
Goto file Alt + G
Goto function Ctrl + Alt + G


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