Keyboard Shortcuts

From CodeBlocks
Revision as of 17:34, 16 April 2006 by Sethjackson (Talk | contribs)

Jump to: navigation, search

Code::Blocks Shortcut Keys

Function Shortcut Key
Show/hide messages pane F2
Show/hide project pane Shift + F2
Focus editor CTRL + Alt + E
Swap header/source F11
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
Close file currently active in editor Ctrl + W
Close current open file Ctrl + F4
Close all open files Ctrl + Shift + F4
Comment highlighted code Ctrl + Shift + C
Uncomment highlighted code Ctrl + Shift + X
Zoom in/out on editor Ctrl + Roll Mouse Wheel
Toggle to next file in editor Ctrl + Tab
Toggle to previous file in editor Ctrl + Shift + Tab
File / New File Ctrl + N
File / New Project Ctrl + Shift + N
File / Open Ctrl + O
File / Save Ctrl + S
File / Save all files Ctrl + Shift + S
File / Close Ctrl + W
File / Close all Ctrl + Shift + W
File / Quit Ctrl + Q
Edit / Undo Ctrl + Z
Edit / Redo Ctrl + Shift + Z
Edit / Cut Ctrl + X
Edit / Copy Ctrl + C
Edit / Paste Ctrl + V
Edit / Select all Ctrl + A
Toggle bookmark Ctrl + B
Goto previous bookmark Alt + PgUp
Goto next bookmark Alt + PgDown
Toggle current block folding F12
Toggle all folds Shift + F12
Search / Find CTRL + F
Search / Find next F3
Search / Find previous Shift + F3
Search / Replace Ctrl + R
Goto line Ctrl + G
Goto file Alt + G
Goto function Ctrl + Alt + G
Project tree / Move project up Ctrl + Shift + Up
Project tree / Move project down Ctrl + Shift + Down
Project tree / Activate prior Alt + F5
Project tree / Activate next Alt + F6
Build Ctrl + F9
Build / Compile current file Ctrl + Shift + F9
Run Ctrl + F10
Build & Run F9
Rebuild Ctrl + F11
Previous error Alt + F1
Next error Alt + F2
Debug F8
Debug / Continue Ctrl + F7
Debug / Step over F7
Debug / Step into Shift + F7
Debug / Step out Ctrl + Shift + F7
Debug / Toggle breakpoint F5
Run to cursor F4

Editor shortcut keys

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

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 + \