code:blocks 快捷键(精华版+全部快捷键!!)

今天第一次用code:blocks,在网上搜索了code:blocks的快捷键,现在整理下来一些常用的,以备以后查看。

1.查找:Ctrl+F

2. Build并运行:F9

3. Build项目:Ctrl+F9

4. 运行:Ctrl+F10

5.debugF8

6.Step over a code block:F7

7.Step into a code block:Shift + F7

8.Step out of a code block:Ctrl + Shift + F7

9.存储当前文件:Ctrl+S

10.存储所有文件:Ctrl+Shift+S

11.注释代码:Ctrl+Shift+C

12.反注释高亮代码:Ctrl+Shift+X

13.剪切选中行:Ctrl+L


补充:

codeblock使用

       设置豆沙绿色”可保护眼睛 Setting菜单-->Editor-->Syntax Highlighting-->Background-->添加自定义颜色(色调:85,饱和度123,亮度205)


全部快捷键

以下全部快捷键说明来自: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

Step into a code block
  • 21
    点赞
  • 115
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值