114 Code::Blocks Keyboard Shortcuts

Learn Code Blocks Shortcuts for Windows

Editor Shortcuts

ActionCode Blocks Shortcuts
Undo the last actionCtrl + Z
Redo last actionCtrl + Shift + Z
Cut selected textCtrl + X
Copy selected textCtrl + C
Paste text from the clipboardCtrl + V
Select all textCtrl + A
Swap header/sourceF11
Comment highlighted codeCtrl + Shift + C
Uncomment highlighted codeCtrl + Shift + X
Duplicate line caret is onCtrl + D
Auto-complete / AbbreviationsCtrl + Spacebar
Show call tipCtrl + Shift + Spacebar
Swap line caret is on with line above itCtrl + T
Toggle bookmarkCtrl + B
Go to the previous bookmarkAlt + Page Up key
Go to the next bookmarkAlt + Page Down key
Toggle current block foldingF12
Toggle all foldsShift + F12
Magnify text sizeCtrl + +
Reduce text sizeCtrl + –
Restore text size to normalCtrl + /
Cycle through recent filesCtrl + Tab
Indent blockTab
Dedent blockShift + Tab
Delete to start of wordCtrl + Backspace
Delete to end of wordCtrl + Delete
Delete to start of lineCtrl + Shift + Backspace
Delete to end of lineCtrl + Shift + Delete
Go to start of the documentCtrl + Home
Extend selection to start of documentCtrl + Shift + Home
Go to the start of the display lineAlt + Home
Extend selection to start of display lineShift + Alt + Home
Go to the end of the documentCtrl + End
Extend selection to end of documentCtrl + Shift + End
Go to the end of the display lineAlt + End
Extend selection to end of display lineShift + Alt + End
Expand or contract a fold pointCtrl + *
Create or delete a bookmarkCtrl + F2
Go to the next bookmarkF2
Select to next bookmarkAlt + F2
Find selectionCtrl + F3
Find selection backwardsCtrl + Shift + F3
Scroll upCtrl + Up Arrow key
Scroll downCtrl + Down Arrow key
Line-cutCtrl + L
Line copyCtrl + Shift + T
Line deleteCtrl + Shift + L
Line transpose with previousCtrl + T
Line duplicateCtrl + D
Find matching preprocessor conditional, skipping nested onesCtrl + K
Select to matching preprocessor conditionalCtrl + Shift + K
Find matching preprocessor conditional backwards, skipping nested onesCtrl + J
Select to matching preprocessor conditional backwardsCtrl + Shift + J
Previous paragraph. Shift extends selectionCtrl + [
Next paragraph. Shift extends selectionCtrl + ]
Previous word. Shift extends selectionCtrl + Left Arrow key
Next word. Shift extends selectionCtrl + Right Arrow key
Previous word part. Shift extends selectionCtrl + /
Next word part. Shift extends selectionCtrl + \

Files Shortcuts

ActionCode Blocks Shortcuts
New file or projectCtrl + N
New empty fileCtrl + Shift + N
Open existing file or projectCtrl + O
Save current fileCtrl + S
Save all filesCtrl + Shift + S
Close current fileCtrl + F4
Close all filesCtrl + Shift + F4
Activate the next open fileCtrl + Tab
Activate the previous open fileCtrl + Shift + Tab
PrintCtrl + P
ExitCtrl + Q

View Shortcuts

ActionCode Blocks Shortcuts
Show/hide Messages paneF2
Show/hide Management paneShift + F2
Move the project up (in the Project tree)Ctrl + Shift + Up Arrow key
Move the project down (in the Project tree)Ctrl + Shift + Down Arrow key
Activate prior (in Project tree)Alt + F5
Activate next (in Project tree)Alt + F6
Zoom in / outCtrl + Mouse Scroll Up & Down
Focus editorCtrl + Alt + E

Search Shortcuts

ActionCode Blocks Shortcut keys
FindCtrl + F
Find nextF3
Find PreviousShift + F3
Find in filesCtrl + Shift + F
ReplaceCtrl + R
Replace in filesCtrl + Shift + R
Go to lineCtrl + G
Go to the next changed lineCtrl + F3
Go to the previously changed lineCtrl + Shift + F3
Go to fileAlt + G
Go to functionCtrl + Alt + G
Go to the previous functionCtrl + Page Up key
Go to the next functionCtrl + Page Down key
Go to declarationCtrl + Shift + .
Go to ImplementationCtrl + .
Open include fileAlt + Ctrl + .

Build Shortcuts

ActionCode Blocks Shortcuts
BuildCtrl + F9
Compile current fileCtrl + Shift + F9
RunCtrl + F10
Build and RunF9
RebuildCtrl + F11

Debug Shortcuts

ActionCode Blocks Shortcuts
DebugF8
Continue debuggingCtrl + F7
Step over a code blockF7
Step into a code blockShift + F7
Step out of a code blockCtrl + Shift + F7
Toggle breakpointF5
Run to cursorF4
Previous errorAlt + F1
Next errorAlt + F2

Other Code Blocks Shortcuts

ActionCode Blocks Shortcuts
Management paneShift + F2
Log paneF2
Switch between tabsCtrl + Tab
Show tooltipShift + Alt + Spacebar
Next call tipCtrl + N
Previous call tipCtrl + P

READ NEXT:

Back to top button