Codeblocks常用快鍵鍵

轉自:https://blog.csdn.net/yjx_xx/article/details/38405911

CodeBlocks常用操作快捷鍵
編輯部分:
Ctrl + A:全選
Ctrl + C:複製
Ctrl + X: 剪切
Ctrl + V:粘貼
Ctrl + Z:撤銷
Ctrl + S:保存
Ctrl + Y / Ctrl + Shift + Z:重做
Ctrl+Shift+C:註釋掉當前行或選中塊
Ctrl+Shift+X:解除註釋
Tab:縮進當前行或選中塊
Shift+Tab:減少縮進
按住Ctrl,滾動鼠標滾輪,放大或縮小字體


編譯與運行部分:
Ctrl + F9:編譯
Ctrl + F10:運行上次成功編譯後的程序
Ctrl + Shift + F9:編譯當前文件(而不是當前打開的工程項目)
F9:編譯並運行當前代碼(如果編譯錯誤會提示錯誤而不會運行)
F8:debug
F10:全屏
Ctrl + C:終止正在運行的程序
Ctrl + Z:終止輸入


界面部分:
Shift + F2:左側導航欄


熟練的掌握和使用這些快捷鍵可以有效的提高我們的工作效率,節約時間。


以下全部快捷鍵說明來自:http://wiki.codeblocks.org/index.php?title=Keyboard_Shortcuts

FunctionShortcut Key
Undo last actionCtrl + Z
Redo last actionCtrl + Shift + Z
Cut selected textCtrl + X
Copy selected textCtrl + C
Paste text from 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 + Space / Ctrl + J
Show call tipCtrl + Shift + Space
Swap line caret is on with line above itCtrl + T
Toggle bookmarkCtrl + B
Goto previous bookmarkAlt + PgUp
Goto next bookmarkAlt + PgDown
Toggle current block foldingF12
Toggle all foldsShift + F12


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

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

Files

FunctionShortcut Key
New file or projectCtrl + N
Open existing file or projectCtrl + O
Save current fileCtrl + S
Save all filesCtrl + Shift + S
Close current fileCtrl + F4 / Ctrl + W
Close all filesCtrl + Shift + F4 / Ctrl + Shift + W


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

FunctionShortcut Key
Activate next open fileCtrl + Tab
Activate previous open fileCtrl + Shift + Tab


View

FunctionShortcut Key
Show / hide Messages paneF2
Show / hide Management paneShift + F2
Move project up (in Project tree)Ctrl + Shift + Up
Move project down (in Project tree)Ctrl + Shift + Down
Activate prior (in Project tree)Alt + F5
Activate next (in Project tree)Alt + F6
Zoom in / outCtrl + Roll Mouse Wheel
Focus editorCTRL + Alt + E


Search

FunctionShortcut Key
FindCtrl + F
Find nextF3
Find previousShift + F3
Find in filesCrtl + Shift + F
ReplaceCtrl + R
Replace in filesCtrl + Shift + R
Goto lineCtrl + G
Goto next changed lineCtrl + F3
Goto previous changed lineCtrl + Shift + F3
Goto fileAlt + G
Goto functionCtrl + Alt + G
Goto previous functionCtrl + PgUp
Goto next functionCtrl + PgDn
Goto declarationCtrl + Shift + .
Goto implementationCtrl + .
Open include fileCtrl + Alt + .

Build

FunctionShortcut Key
BuildCtrl + F9
Compile current fileCtrl + Shift + F9
RunCtrl + F10
Build and RunF9
RebuildCtrl + F11


Debug

FunctionShortcut Key
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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章