CodeBlocks的常用快捷键

来源:互联网 发布:手机root软件 编辑:程序博客网 时间:2024/05/16 13:59
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 KeyUndo last actionCtrl + ZRedo last actionCtrl + Shift + ZCut selected textCtrl + XCopy selected textCtrl + CPaste text from clipboardCtrl + VSelect all textCtrl + ASwap header / sourceF11Comment highlighted codeCtrl + Shift + CUncomment highlighted codeCtrl + Shift + XDuplicate line caret is onCtrl + DAuto-complete / AbbreviationsCtrl + Space / Ctrl + JShow call tipCtrl + Shift + SpaceSwap line caret is on with line above itCtrl + TToggle bookmarkCtrl + BGoto previous bookmarkAlt + PgUpGoto next bookmarkAlt + PgDownToggle current block foldingF12Toggle all foldsShift + F12


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

FunctionShortcut KeyMagnify text size.Ctrl + Keypad "+"Reduce text size.Ctrl + Keypad "-"Restore text size to normal.Ctrl + Keypad "/"Cycle through recent files.Ctrl + TabIndent block.TabDedent block.Shift + TabDelete to start of word.Ctrl + BackSpaceDelete to end of word.Ctrl + DeleteDelete to start of line.Ctrl + Shift + BackSpaceDelete to end of line.Ctrl + Shift + DeleteGo to start of document.Ctrl + HomeExtend selection to start of document.Ctrl + Shift + HomeGo to start of display line.Alt + HomeExtend selection to start of display line.Alt + Shift + HomeGo to end of document.Ctrl + EndExtend selection to end of document.Ctrl + Shift + EndGo to end of display line.Alt + EndExtend selection to end of display line.Alt + Shift + EndExpand or contract a fold point.Ctrl + Keypad "*"Create or delete a bookmark.Ctrl + F2Go to next bookmark.F2Select to next bookmark.Alt + F2Find selection.Ctrl + F3Find selection backwards.Ctrl + Shift + F3Scroll up.Ctrl + UpScroll down.Ctrl + DownLine cut.Ctrl + LLine copy.Ctrl + Shift + TLine delete.Ctrl + Shift + LLine transpose with previous.Ctrl + TLine duplicate.Ctrl + DFind matching preprocessor conditional, skipping nested ones.Ctrl + KSelect to matching preprocessor conditional.Ctrl + Shift + KFind matching preprocessor conditional backwards, skipping nested ones.Ctrl + JSelect to matching preprocessor conditional backwards.Ctrl + Shift + JPrevious paragraph. Shift extends selection.Ctrl + [Next paragraph. Shift extends selection.Ctrl + ]Previous word. Shift extends selection.Ctrl + LeftNext word. Shift extends selection.Ctrl + RightPrevious word part. Shift extends selection.Ctrl + /Next word part. Shift extends selection.Ctrl + \

Files

FunctionShortcut KeyNew file or projectCtrl + NOpen existing file or projectCtrl + OSave current fileCtrl + SSave all filesCtrl + Shift + SClose current fileCtrl + F4 / Ctrl + WClose 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 KeyActivate next open fileCtrl + TabActivate previous open fileCtrl + Shift + Tab


View

FunctionShortcut KeyShow / hide Messages paneF2Show / hide Management paneShift + F2Move project up (in Project tree)Ctrl + Shift + UpMove project down (in Project tree)Ctrl + Shift + DownActivate prior (in Project tree)Alt + F5Activate next (in Project tree)Alt + F6Zoom in / outCtrl + Roll Mouse WheelFocus editorCTRL + Alt + E


Search

FunctionShortcut KeyFindCtrl + FFind nextF3Find previousShift + F3Find in filesCrtl + Shift + FReplaceCtrl + RReplace in filesCtrl + Shift + RGoto lineCtrl + GGoto next changed lineCtrl + F3Goto previous changed lineCtrl + Shift + F3Goto fileAlt + GGoto functionCtrl + Alt + GGoto previous functionCtrl + PgUpGoto next functionCtrl + PgDnGoto declarationCtrl + Shift + .Goto implementationCtrl + .Open include fileCtrl + Alt + .

Build

FunctionShortcut KeyBuildCtrl + F9Compile current fileCtrl + Shift + F9RunCtrl + F10Build and RunF9RebuildCtrl + F11


Debug

FunctionShortcut KeyDebugF8Continue debuggingCtrl + F7Step over a code blockF7Step into a code blockShift + F7Step out of a code blockCtrl + Shift + F7Toggle breakpointF5Run to cursorF4Previous errorAlt + F1Next errorAlt + F2
0 0
原创粉丝点击