编辑相关
Function |
Shortcut Key |
撤销 |
Ctrl + Z |
重复上一次 操作 |
Ctrl + Shift + Z |
剪切选中的文本 |
Ctrl + X |
复制选中的文本 |
Ctrl + C |
从剪贴板粘贴 |
Ctrl + V |
选中所有文本 |
Ctrl + A |
切换头文件/源文件 |
F11 |
注释掉代码 |
Ctrl + Shift + C |
撤销注释代码 |
Ctrl + Shift + X |
复制当前行 |
Ctrl + D |
自动完成/填充代码 |
Ctrl + Space / Ctrl + J |
Show call tip |
Ctrl + Shift + Space |
将当前行与上一行交换位置 |
Ctrl + T |
添加/取消书签 |
Ctrl + B |
跳转到上一个书签 |
Alt + PgUp |
跳转到下一个书签 |
Alt + PgDown |
Toggle current block folding |
F12 |
Toggle all folds |
Shift + F12 |
This is a list of shortcuts provided by the Code::Blocks’ editor component. These shortcuts cannot be rebound.
Function |
Shortcut Key |
放大文本 |
Ctrl + Keypad “+” |
缩小文本 |
Ctrl + Keypad “-“ |
换源文本大小 |
Ctrl + Keypad “/“ |
浏览最近文件 |
Ctrl + Tab |
Indent block. |
Tab |
Dedent block. |
Shift + Tab |
删除到词首 |
Ctrl + BackSpace |
删除到词尾 |
Ctrl + Delete |
删除到行首 |
Ctrl + Shift + BackSpace |
删除到行尾 |
Ctrl + Shift + Delete |
跳转到文件首 |
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 |
前切当前行到剪贴板 |
Ctrl + L |
复制当前行到剪贴板 |
Ctrl + Shift + T |
删除当前行 |
Ctrl + Shift + L |
Line transpose with previous. |
Ctrl + T |
复制当前行 |
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 + \ |
文件相关
Function |
Shortcut Key |
新建空文件 |
Ctrl + N |
打开已存在的文件或项目 |
Ctrl + O |
保存当前文件 |
Ctrl + S |
保存所有文件 |
Ctrl + Shift + S |
关闭当前文件 |
Ctrl + F4 / Ctrl + W |
关闭所有文件 |
Ctrl + Shift + F4 / Ctrl + Shift + W |
预览相关
Function |
Shortcut Key |
显示/隐藏 底部信息面板 |
F2 |
显示/隐藏 管理左侧面板 |
Shift + F2 |
Move project up (in Project tree) |
Ctrl + Shift + Up |
Move project down (in Project tree) |
Ctrl + Shift + Down |
激活前一个项目 |
Alt + F5 |
激活下一个项目 |
Alt + F6 |
Zoom in / out |
Ctrl + Roll Mouse Wheel |
Focus editor |
CTRL + Alt + E |
查找相关
功能 |
快捷键 |
查找 |
Ctrl + F |
查找下一个 |
F3 |
查找上一个 |
Shift + F3 |
在文件内查找 |
Crtl + Shift + F |
替换 |
Ctrl + R |
在文件内替换 |
Ctrl + Shift + R |
跳转到某行 |
Ctrl + G |
Goto next changed line |
Ctrl + F3 |
Goto previous changed line |
Ctrl + Shift + F3 |
跳转到某文件 |
Alt + G |
跳转到某个函数 |
Ctrl + Alt + G |
跳转到上一个函数 |
Ctrl + PgUp |
跳转到下一个函数 |
Ctrl + PgDn |
Goto declaration |
Ctrl + Shift + . |
Goto implementation |
Ctrl + . |
Open include file |
Ctrl + Alt + . |
Build
Function |
Shortcut Key |
构建 |
Ctrl + F9 |
编译当前文件 |
Ctrl + Shift + F9 |
运行 |
Ctrl + F10 |
构建并运行 |
F9 |
重新构建 |
Ctrl + F11 |
Debug
Function |
Shortcut Key |
开始调试 |
F8 |
继续调试 |
Ctrl + F7 |
Step over a code block |
F7 |
Step into a code block |
Shift + F7 |
Step out of a code block |
Ctrl + Shift + F7 |
添加/取消断点 |
F5 |
运行到下一个断点 |
F4 |
上一个错误 |
Alt + F1 |
下一个错误 |
Alt + F2 |
内容来自官方wiki:http://wiki.codeblocks.org/index.php?title=Keyboard_Shortcuts ,看来得抽空翻译一下d=====( ̄▽ ̄*)b