Code::Blocks
Keyboard Shortcuts


File

Menu Path
Function
Keyboard Shortcut
File > New > Empty file
Quickly create a new empty file
Ctrl-Shift-N
File > Open...
Open a file or project
Ctrl-O
File > Save file
Save the active file
Ctrl-S
File > Save everything
Save all source files, projects and the workspace, if there are changes to them. Save the configuration
Ctrl-Shift-S
File > Print...
Ctrl-P
File > Quit
Exit Code::Blocks
Ctrl-Q
File > Close all files
Close all open files
Ctrl-Shift-W
File > Close file
Close the active file
Ctrl-W

Edit

Menu Path
Function
Keyboard Shortcut
Edit > Undo
Undo the last editing operation
Ctrl-Z
Edit > Redo
Redo the last editing operation
Ctrl-Shift-Z
Edit > Swap header/source
Swap between header and source file pair
F11
Edit > Bookmarks > Toggle bookmark
Toggle a bookmark for the current position
Ctrl-B
Edit > Bookmarks > Goto previous bookmark
Goto previous bookmark
Alt-PAGEUP
Edit > Bookmarks > Goto next bookmark
Goto next bookmark
Alt-PAGEDOWN
Edit > Folding > Toggle all
Toggle all folds
Shift-F12
Edit > Folding > Toggle current block
Toggle folding of current block
F12
Edit > Special commands > Line
Transpose current line(s) down
Alt-DOWN
Edit > Special commands > Other
Goto current line end
Ctrl-RETURN
Edit > Select next occurrence
Selects the next occurrence of the currently selected text. Allows editing all the occurrences.
Ctrl-E
Edit > Select skip to next occurrence
Deselects the current text and then selects the next occurrence of the same text. Allows editing all the occurrences.
Ctrl-Shift-E
Edit > Comment
Comments the selected block of code
Ctrl-Shift-C
Edit > Uncomment
Uncomments the selected block of code
Ctrl-Shift-X
Edit > Goto matching brace
Moves the caret to the matching brace (if any)
Ctrl-Shift-B
Edit > Show call tip
Ctrl-Shift-SPACE
Edit > Complete code
Ctrl-SPACE
Edit > Auto-complete
Auto-completes the word under the caret (nothing to do with code-completion plugins)
Ctrl-J
Edit > Rename symbols
Alt-N
Edit > Show tooltip
Alt-Shift-SPACE
Edit > Next call tip
Ctrl-N
Edit > Previous call tip
Ctrl-P

View

Menu Path
Function
Keyboard Shortcut
View > Manager
Show/hide manager
Shift-F2
View > Logs
Show/hide logs
F2
View > Full screen
Switch to full screen view
Shift-F11
View > Reopen last closed editor
Reopens the last closed editor
Ctrl-Shift-T
View > Switch tabs
Switch between open editor tabs
Ctrl-TAB
View > Browse Tracker > Backward Ed
Browse Backward
Alt-LEFT
View > Browse Tracker > Forward Ed
Browse forward
Alt-RIGHT

Menu Path
Function
Keyboard Shortcut
Search > Find...
Search for text
Ctrl-F
Search > Find in files...
Search for text
Ctrl-Shift-F
Search > Find next
Repeat the last search in the same direction
F3
Search > Find previous
Repeat the last search in the opposite direction
Shift-F3
Search > Incremental search
Set focus on Incremental Search input and show the toolbar, if hidden
Ctrl-I
Search > Replace...
Find and replace text
Ctrl-R
Search > Replace in files...
Find and replace text
Ctrl-Shift-R
Search > Goto line...
Goto a specific line
Ctrl-G
Search > Goto next changed line
Goto next changed line
Ctrl-F3
Search > Goto previous changed line
Goto previous changed line
Ctrl-Shift-F3
Search > Goto file...
Alt-G
Search > Goto function...
Ctrl-Shift-G
Search > Goto previous function
Ctrl-PAGEUP
Search > Goto next function
Ctrl-PAGEDOWN
Search > Goto declaration
Ctrl-Shift-.
Search > Goto implementation
Ctrl-.
Search > Find references
Alt-.
Search > Open include file
Ctrl-Shift-.

Project

Menu Path
Function
Keyboard Shortcut
Project > Project tree > Move project up
Move project up in project tree
Ctrl-Shift-UP
Project > Project tree > Move project down
Move project down in project tree
Ctrl-Shift-DOWN
Project > Project tree > Activate prior project
Activate prior project in open projects list
Alt-F5
Project > Project tree > Activate next project
Activate next project in open projects list
Alt-F6

Build

Menu Path
Function
Keyboard Shortcut
Build > Build
Build current project
Ctrl-F9
Build > Compile current file
Compile current file
Ctrl-Shift-F9
Build > Run
Run current project
Ctrl-F10
Build > Build and run
Build and run current project
F9
Build > Rebuild
Rebuild current project
Ctrl-F11
Build > Errors > Previous error
Go to previous compilation error
Alt-F1
Build > Errors > Next error
Go to next compilation error
Alt-F2

Debug

Menu Path
Function
Keyboard Shortcut
Debug > Start / Continue
Run current project in debugger
F8
Debug > Stop debugger
Stop current debugging session
Shift-F8
Debug > Run to cursor
Run program until it reaches the current line
F4
Debug > Next line
Execute the next line of code
F7
Debug > Step into
Execute the next line of code, but step inside functions
Shift-F7
Debug > Step out
Continue execution until the current frame exits
Ctrl-F7
Debug > Next instruction
Execute the next assembly instruction
Alt-F7
Debug > Step into instruction
Execute the next assembly instruction, if it is a function call step into it
Alt-Shift-F7
Debug > Toggle breakpoint
Toggle breakpoint in current line
F5

DoxyBlocks

Menu Path
Function
Keyboard Shortcut
DoxyBlocks > Doxywizard...
Run doxywizard.
Ctrl-Shift-D
DoxyBlocks > Run HTML
Run HTML documentation.
Ctrl-Shift-H