You are on page 1of 3

Page 1 of 3

Code::Blocks 17.12 cheat sheet


line.
Editor
Ctrl + End Go to end of document.
Ctrl + Z Undo last action
Ctrl + Shift + End Extend selection to end of
Ctrl + Shift + Z Redo last action document.
Ctrl + X Cut selected text Alt + End Go to end of display line.
Ctrl + C Copy selected text Shift + Alt + End Extend selection to end of display
Ctrl + V Paste text from clipboard line.

Ctrl + A Select all text Ctrl + Num * Expand or contract a fold point.

F11 Swap header / source Ctrl + F2 Create or delete a bookmark.

Ctrl + Shift + C Comment highlighted code F2 Go to next bookmark.

Ctrl + Shift + X Uncomment highlighted code Alt + F2 Select to next bookmark.

Ctrl + D Duplicate line caret is on Ctrl + F3 Find selection.

Ctrl + Space or Auto-complete / Abbreviations Ctrl + Shift + F3 Find selection backwards.


Ctrl + J Ctrl + Up arrow Scroll up.
Ctrl + Shift + Show call tip Ctrl + Down arrow Scroll down.
Space
Ctrl + L Line cut.
Ctrl + T Swap line caret is on with line
Ctrl + Shift + T Line copy.
above it
Ctrl + Shift + L Line delete.
Ctrl + B Toggle bookmark
Ctrl + T Line transpose with previous.
Alt + Page Up Go to previous bookmark
Ctrl + D Line duplicate.
Alt + Page Down Go to next bookmark
Ctrl + K Find matching preprocessor
F12 Toggle current block folding
conditional, skipping nested ones.
Shift + F12 Toggle all folds
Ctrl + Shift + K Select to matching preprocessor
This is a list of shortcuts provided by the Code::Blocks' conditional.
editor component and cannot be reassigned.
Ctrl + J Find matching preprocessor
Ctrl + Num + Magnify text size. conditional backwards, skipping
Ctrl + Num - Reduce text size. nested ones.

Ctrl + Num / Restore text size to normal. Ctrl + Shift + J Select to matching preprocessor
conditional backwards.
Ctrl + Tab Cycle through recent files.
Ctrl + [ Previous paragraph. Shift extends
Tab Indent block.
selection.
Shift + Tab Dedent block.
Ctrl + ] Next paragraph. Shift extends
Ctrl + Backspace Delete to start of word. selection.
Ctrl + Del Delete to end of word. Ctrl + Left arrow Previous word. Shift extends
Ctrl + Shift + Delete to start of line. selection.
Backspace Ctrl + Right arrow Next word. Shift extends selection.
Ctrl + Shift + Del Delete to end of line. Ctrl + / Previous word part. Shift extends
Ctrl + Home Go to start of document. selection.
Ctrl + Shift + Extend selection to start of Ctrl + \ Next word part. Shift extends
Home document. selection.
Alt + Home Go to start of display line.
Shift + Alt + Home Extend selection to start of display Files
Page 2 of 3

Ctrl + N New file or project Ctrl + . Go to implementation


Ctrl + O Open existing file or project Alt + Ctrl + . Open include file
Ctrl + S Save current file
Ctrl + Shift + S Save all files Build
Ctrl + F4 / Ctrl + W Close current file Ctrl + F9 Build
Ctrl + Shift + F4 or Close all files Ctrl + Shift + F9 Compile current file
Ctrl + Shift + W
Ctrl + F10 Run
These are shortcuts provided by the Code::Blocks' tab
F9 Build and Run
component and cannot be reassigned.
Ctrl + F11 Rebuild
Ctrl + Tab Activate next open file
Ctrl + Shift + Tab Activate previous open file
Debug
View F8 Debug
Ctrl + F7 Continue debugging
F2 Show / hide Messages pane
F7 Step over a code block
Shift + F2 Show / hide Management pane
Shift + F7 Step into a code block
Ctrl + Shift + Up Move project up (in Project tree)
arrow Ctrl + Shift + F7 Step out of a code block

Ctrl + Shift + Move project down (in Project tree) F5 Toggle breakpoint
Down arrow F4 Run to cursor
Alt + F5 Activate prior (in Project tree) Alt + F1 Previous error
Alt + F6 Activate next (in Project tree) Alt + F2 Next error
Ctrl + Wheel up Zoom in / out
and wheel down File menu
Ctrl + Alt + E Focus editor
Ctrl + Shift + N New empty file
Ctrl + O Open file
Search
Ctrl + S Save file
Ctrl + F Find Ctrl + Shift + S Save everything
F3 Find next Ctrl + W Close file
Shift + F3 Find previous Ctrl + Shift + W Close all files
Ctrl + Shift + F Find in files Ctrl + P Print
Ctrl + R Replace Ctrl + Q Exit
Ctrl + Shift + R Replace in files
Ctrl + G Go to line Misc
Ctrl + F3 Go to next changed line
Shift + F2 Management pane
Ctrl + Shift + F3 Go to previous changed line
F2 Log pane
Alt + G Go to file
Ctrl + Tab Switch between tabs
Ctrl + Alt + G Go to function
Shift + Alt + Space Show tooltip
Ctrl + Page Up Go to previous function
Ctrl + N Next call tip
Ctrl + Page Down Go to next function
Ctrl + P Previous call tip
Ctrl + Shift + . Go to declaration
Page 3 of 3

Last modification: 1/16/2021 9:05:16 AM

More information: defkey.com/code-blocks-shortcuts

Customize this PDF...

You might also like