=====================================
Code::Blocks 20.03 keyboard shortcuts
=====================================

First published at AP 1399/12/11 on
https://defkey.com/ps/code-blocks-20-shortcuts


Code::Blocks 20.03 has 105 shortcuts and we have listed all of them below.



Editor
------

Ctrl + Z                Undo last action
Ctrl + Shift + Z        Redo last action
Ctrl + X                Cut selected text
Ctrl + C                Copy selected text
Ctrl + V                Paste text from clipboard
Ctrl + A                Select all text
F11                     Swap header / source
Ctrl + Shift + C        Comment highlighted code
Ctrl + Shift + X        Uncomment highlighted code
Ctrl + D                Duplicate line caret is on
Ctrl + Space            Auto complete / Abbreviations
Ctrl + J                Auto complete / Abbreviations
Ctrl + Shift + Space    Show call tip
Ctrl + T                Swap line caret is on with line above it
Ctrl + B                Toggle bookmark
Alt + Page Up           Go to previous bookmark
Alt + Page Down         Go to next bookmark
F12                     Toggle current block folding
Shift + F12             Toggle all folds

The Editor keyboard shortcuts above cannot be re-assigned.

Ctrl + Num +            Magnify text size
Ctrl + Num -            Reduce text size
Ctrl + Num /            Restore text size to normal
Ctrl + Tab              Cycle through recent files
Tab                     Indent block
Shift + Tab             Dedent block
Ctrl + Backspace        Delete to start of word
Ctrl + Del              Delete to end of word
Ctrl + Shift + Backspace Delete to start of line
Ctrl + Shift + Del      Delete to end of line
Ctrl + Home             Go to start of document
Ctrl + Shift + Home     Extend selection to start of document
Alt + Home              Go to start of display line
Alt + Shift + Home      Extend selection to start of display line
Ctrl + End              Go to end of document
Ctrl + Shift + End      Extend selection to end of document
Alt + End               Go to end of display line
Alt + Shift + End       Extend selection to end of display line
Ctrl + Num *            Expand or contract a fold point
Ctrl + F2               Create or delete a bookmark
F2                      Go to next bookmark
Alt + F2                Select to next bookmark
Ctrl + F3               Find selection
Ctrl + Shift + F3       Find selection backwards
Ctrl + Up arrow         Scroll up
Ctrl + Down arrow       Scroll down
Ctrl + L                Line cut
Ctrl + Shift + T        Line copy
Ctrl + Shift + L        Line delete
Ctrl + T                Line transpose with previous
Ctrl + D                Line duplicate
Ctrl + K                Find matching preprocessor conditional, skipping nested ones
Ctrl + Shift + K        Select to matching preprocessor conditional
Ctrl + J                Find matching preprocessor conditional backwards, skipping nested ones
Ctrl + Shift + J        Select to matching preprocessor conditional backwards
Ctrl + [                Previous paragraph. Shift extends selection
Ctrl + ]                Next paragraph. Shift extends selection
Ctrl + Left arrow       Previous word. Shift extends selection
Ctrl + Right arrow      Next word. Shift extends selection
Ctrl + /                Previous word part. Shift extends selection
Ctrl + \                Next word part. Shift extends selection


Files
-----

Ctrl + N                New file or project
Ctrl + O                Open existing file or project
Ctrl + S                Save current file
Ctrl + Shift + S        Save all files
Ctrl + F4               Close current file
Ctrl + W                Close current file
Ctrl + Shift + F4       Close all files
Ctrl + Shift + W        Close all files


Views
-----

F2                      Show / hide Messages pane
Shift + F2              Show / hide Management pane
Ctrl + Shift + P        Move project up (in Project tree)
Ctrl + Shift + Down arrow Move project down (in Project tree)
Alt + F5                Activate prior (in Project tree)
Alt + F6                Activate next (in Project tree)
Ctrl + Wheel up and wheel down Zoom in / out
Ctrl + Alt + E          Focus editor


Search
------

Ctrl + F                Find
F3                      Find next
Shift + F3              Find previous
Ctrl + Shift + F        Find in files
Ctrl + R                Replace
Ctrl + Shift + R        Replace in files
Ctrl + G                Go to line
Ctrl + F3               Go to next changed line
Ctrl + Shift + F3       Go to previous changed line
Alt + G                 Go to file
Ctrl + Alt + G          Go to function
Ctrl + Page Up          Go to previous function
Ctrl + Page Down        Go to next function
Ctrl + Shift + .        Go to declaration
Ctrl + .                Go to implementation
Ctrl + Alt + .          Open include file


Build
-----

Ctrl + F9               Build
Ctrl + Shift + F9       Compile current file
Ctrl + F10              Run
F9                      Build and run
Ctrl + F11              Rebuild


Debug
-----

F8                      Debug
Ctrl + F7               Continue debugging
F7                      Step over a code block
Shift + F7              Step into a code block
Ctrl + Shift + F7       Step out of a code block
F5                      Toggle breakpoint
F4                      Run to cursor
Alt + F1                Previous error

Source: Code::Blocks

Last modified on (UTC): دونۍ د AP 1399 د کب 11
Defkey © All rights reserved.