Home / Programming / All keyboard Shortcut Keys for “Code Blocks” : Enjoy Fast and Efficient Coding

All keyboard Shortcut Keys for “Code Blocks” : Enjoy Fast and Efficient Coding

 

Hello Everyone,

Are you going to start programming? Is it with C or C++? Then may be it will be helpful for you. For coding with C or C++, Code Blocks is a very popular IDE. To using Code Blocks for  faster and efficiently, you use have a look at the following Shortcut Keys.

 

Editor >>

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

 

This is a list of shortcuts provided by the Code::Blocks’ editor component. These shortcuts cannot be rebound.

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

 

Files >>

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

 

This is a list of shortcuts provided by the Code::Blocks’ tab component. These shortcuts cannot be rebound.

Shortcut Key Function
Ctrl + Shift + Tab Activate previous open file
Ctrl + Tab Activate next open file

 

View >>

Shortcut Key Function
Alt + F5 Activate prior (in Project tree)
Alt + F6 Activate next (in Project tree)
CTRL + Alt + E Focus editor
Ctrl + Roll Mouse Wheel Zoom in / out
Ctrl + Shift + Down Move project down (in Project tree)
Ctrl + Shift + Up Move project up (in Project tree)
F2 Show / hide Messages pane
Shift + F2 Show / hide Management pane

 

Search>>

Shortcut Key Function
Alt + G Goto file
Crtl + Shift + F Find in files
Ctrl + . Goto implementation
Ctrl + Alt + . Open include file
Ctrl + Alt + G Goto function
Ctrl + F Find
Ctrl + F3 Goto next changed line
Ctrl + G Goto line
Ctrl + PgDn Goto next function
Ctrl + PgUp Goto previous function
Ctrl + R Replace
Ctrl + Shift + . Goto declaration
Ctrl + Shift + F3 Goto previous changed line
Ctrl + Shift + R Replace in files
F3 Find next
Shift + F3 Find previous

 

Build>>

Shortcut Key Function
Ctrl + F10 Run
Ctrl + F11 Rebuild
Ctrl + F9 Build
Ctrl + Shift + F9 Compile current file
F9 Build and Run

 

Debug>>

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

 

I hope this post will be helpful for you.  Happy Coding.

 

 

About Ahmadnan

Check Also

See Through Wallpaper for iPhone X

Thanks to ifixit.org for introducing wallpapers by using which you can make your iPhone X more ...

2 comments

  1. i think it should be cntl+shift +N for open a new project

    • Dear mehedi hasan,

      Thanks. Actually it may in different version of Code Blocks. In the latest version of Code Blocks such as 16.01 it is Ctrl + Shift + N

      Thank You.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

Powered by themekiller.com anime4online.com animextoon.com apk4phone.com