You are on page 1of 12

BCB

Clipboard control (default)


Ctrl+Ins Edit|Copy
Shift+Del Edit|Cut
Shift+Ins Edit|Paste
Ctrl+C Edit|Copy
Ctrl+V Edit|Paste
Ctrl+X Edit|Cut

Debugger (default, classic, Brief, Epsilon, and Visual Studio) Breakpoint view
Ctrl+V View Source
Ctrl+S Edit Source
Ctrl+E Edit Breakpoint
Enter Edit Breakpoint
Ctrl+D Delete Breakpoint
Del Delete Breakpoint
Ctrl+A Add Breakpoint
Ins Add Breakpoint
Ctrl+N Enable Breakpoint
Call stack view
Ctrl+V View Source
Ctrl+S Edit Source
Space View Source (Epsilon only)
Ctrl+Enter Edit Source (Epsilon only)
Message view
Ctrl+V View Source
Space View Source
Ctrl+S Edit Source
Ctrl+Enter Edit Source
Watch view
Ctrl+E Edit Watch
Enter Edit Watch
Ctrl+A Add Watch
Ins Add Watch
Ctrl+D Delete Watch
Del Delete Watch
Editor (default)
Shortcut Action or command
F1 Help|Topic Search
Ctrl+F1 Help|Topic Search
F3 Search|Search Again
Ctrl+E Search|Incremental Search
Ctrl+F Search|Find
Ctrl+I Inserts a tab character
Ctrl+j Templates pop-up menu
Ctrl+N Inserts a new line
Ctrl+P Causes next character to be interpreted as an ASCII sequence
Ctrl+R Search|Replace
Ctrl+S File|Save
Ctrl+T Deletes a word
Ctrl+Y Deletes a line
Ctrl+Z Edit|Undo
Ctrl+<space bar> Code Completion pop-up window
Ctrl+Shift+I Indents block
Ctrl+Shift+U Outdents block
Ctrl+Shift+Y Deletes to the end of a line
Ctrl+Shift+Z Edit|Redo
Ctrl+Shift+<space bar> Code Parameters pop-up window
Alt+[ Finds the matching delimiter (forward)
Alt+] Finds the matching delimiter (backward)
End Moves to the end of a line
Home Moves to the start of a line
Enter Inserts a carriage return
Ins Turns insert mode on/off
Del Deletes the character to the right of the cursor
Backspace Deletes the character to the left of the cursor
Tab Inserts a tab
Space Inserts a blank space
Left Arrow Moves the cursor left one column, accounting for the autoindent setting
Right Arrow Moves the cursor right one column, accounting for the autoindent setting
Up Arrow Moves up one line
Down Arrow Moves down one line
Page Up Moves up one page
Page Down Moves down one page
Ctrl+Left Arrow Moves one word left
Ctrl+Right Arrow Moves one word right
Ctrl+Tab Moves to the next code page (or file)
Ctrl+Shift+Tab Moves to the previous code page (or file)
Ctrl+Backspace Deletes the word to the right of the cursor
Ctrl+Home Moves to the top of a file
Ctrl+End Moves to the end of a file
Ctrl+Del Deletes a currently selected block
Ctrl+Space Inserts a blank space
Ctrl+PgDn Moves to the bottom of a screen
Ctrl+PgUp Moves to the top of a screen
Ctrl+Up Arrow Scrolls up one line
Ctrl+Down Arrow Scrolls down one line
Ctrl+Enter Opens file at cursor
Shift+Tab Moves the cursor to the left one tab position
Shift+Backspace Deletes the character to the left of the cursor
Shift+Left Arrow Selects the character to the left of the cursor
Shift+Right Arrow Selects the character to the right of the cursor
Shift+Up Arrow Moves the cursor up one line and selects from the left of the starting cursor
position
Shift+Down Arrow Moves the cursor down one line and selects from the right of the starting
cursor position
Shift+PgUp Moves the cursor up one screen and selects from the left of the starting cursor
position
Shift+PgDn Moves the cursor down one line and selects from the right of the starting cursor
position
Shift+End Selects from the cursor position to the end of the current line
Shift+Home Selects from the cursor position to the start of the current line
Shift+Space Inserts a blank space
Shift+Enter Inserts a new line with a carriage return
Ctrl+Shift+Left Arrow Selects the word to the left of the cursor
Ctrl+Shift+Right Arrow Selects the word to the right of the cursor
Ctrl+Shift+Home Selects from the cursor position to the start of the current file
Ctrl+Shift+End Selects from the cursor position to the end of the current file
Ctrl+Shift+PgDn Selects from the cursor position to the bottom of the screen
Ctrl+Shift+PgUp Selects from the cursor position to the top of the screen
Ctrl+Shift+Tab Moves to the previous page
Alt+Backspace Edit|Undo
Alt+Shift+Backspace Edit|Redo
Alt+Shift+Left Arrow Selects the column to the left of the cursor
Alt+Shift+Right Arrow Selects the column to the right of the cursor
Alt+Shift+Up Arrow Moves the cursor up one line and selects the column from the left of the
starting cursor position
Alt+Shift+Down Arrow Moves the cursor down one line and selects the column from the left of
the starting cursor position
Alt+Shift+Page Up Moves the cursor up one screen and selects the column from the left of the
starting cursor position
Alt+Shift+Page Down Moves the cursor down one line and selects the column from the right of
the starting cursor position
Alt+Shift+End Selects the column from the cursor position to the end of the current line
Alt+Shift+Home Selects the column from the cursor position to the start of the current line
Ctrl+Alt+Shift+Left Arrow Selects the column to the left of the cursor
Ctrl+Alt+Shift+Right Arrow Selects the column to the right of the cursor
Ctrl+Alt+Shift+Home Selects the column from the cursor position to the start of the current file
Ctrl+Alt+Shift+End Selects the column from the cursor position to the end of the current file
Ctrl+Alt+Shift+Page Up Selects the column from the cursor position to the bottom of the screen
Ctrl+Alt+Shift+Page Down Selects the column from the cursor position to the top of the screen
Block commands (default and classic)
Shortcut Action or command
Ctrl+K+B Marks the beginning of a block
Ctrl+K+C Copies a selected block
Ctrl+K+H Hides/shows a selected block
Ctrl+K+I Indents a block by the amount specified in the Block Indent combo box on the General
page of the Editor Options dialog box.
Ctrl+K+K Marks the end of a block
Ctrl+K+L Marks the current line as a block
Ctrl+K+N Changes a block to uppercase
Ctrl+K+O Changes a block to lowercase
Ctrl+K+P Prints selected block
Ctrl+K+R Reads a block from a file
Ctrl+K+T Marks a word as a block
Ctrl+K+U Outdents a block by the amount specified in the Block Indent combo box on the
General page of the Editor Options dialog box.
Ctrl+K+V Moves a selected block
Ctrl+K+W Writes a selected block to a file
Ctrl+K+Y Deletes a selected block
Ctrl+O+C Marks a column block
Ctrl+O+I Marks an inclusive block
Ctrl+O+K Marks a non-inclusive block
Ctrl+O+L Marks a line as a block
Ctrl+Q+B Moves to the beginning of a block
Ctrl+Q+K Moves to the end of a block
Bookmark operations (default, classic, and Visual Studio) Shortcut Action
Ctrl+K+0 Sets bookmark 0
Ctrl+K+1 Sets bookmark 1
Ctrl+K+2 Sets bookmark 2
Ctrl+K+3 Sets bookmark 3
Ctrl+K+4 Sets bookmark 4
Ctrl+K+5 Sets bookmark 5
Ctrl+K+6 Sets bookmark 6
Ctrl+K+7 Sets bookmark 7
Ctrl+K+8 Sets bookmark 8
Ctrl+K+9 Sets bookmark 9
Ctrl+K+Ctrl+0 Sets bookmark 0
Ctrl+K+Ctrl+1 Sets bookmark 1
Ctrl+K+Ctrl+2 Sets bookmark 2
Ctrl+K+Ctrl+3 Sets bookmark 3
Ctrl+K+Ctrl+4 Sets bookmark 4
Ctrl+K+Ctrl+5 Sets bookmark 5
Ctrl+K+Ctrl+6 Sets bookmark 6
Ctrl+K+Ctrl+7 Sets bookmark 7
Ctrl+K+Ctrl+8 Sets bookmark 8
Ctrl+K+Ctrl+9 Sets bookmark 9
Ctrl+Q+0 Goes to bookmark 0
Ctrl+Q+1 Goes to bookmark 1
Ctrl+Q+2 Goes to bookmark 2
Ctrl+Q+3 Goes to bookmark 3
Ctrl+Q+4 Goes to bookmark 4
Ctrl+Q+5 Goes to bookmark 5
Ctrl+Q+6 Goes to bookmark 6
Ctrl+Q+7 Goes to bookmark 7
Ctrl+Q+8 Goes to bookmark 8
Ctrl+Q+9 Goes to bookmark 9
Ctrl+Q+Ctrl+0 Goes to bookmark 0
Ctrl+Q+Ctrl+1 Goes to bookmark 1
Ctrl+Q+Ctrl+2 Goes to bookmark 2
Ctrl+Q+Ctrl+3 Goes to bookmark 3
Ctrl+Q+Ctrl+4 Goes to bookmark 4
Ctrl+Q+Ctrl+5 Goes to bookmark 5
Ctrl+Q+Ctrl+6 Goes to bookmark 6
Ctrl+Q+Ctrl+7 Goes to bookmark 7
Ctrl+Q+Ctrl+8 Goes to bookmark 8
Ctrl+Q+Ctrl+9 Goes to bookmark 9
Cursor movement (default and classic)
Shortcut Action
Ctrl+Q+B Moves to the beginning of a block
Ctrl+Q+C Moves to end of a file
Ctrl+Q+D Moves to the end of a line
Ctrl+Q+E Moves to the top of the window
Ctrl+Q+K Moves to the end of a block
Ctrl+Q+P Moves to previous position
Ctrl+Q+R Moves to the beginning of a file
Ctrl+Q+S Moves to the beginning of a line
Ctrl+Q+T Moves to the top of the window
Ctrl+Q+U Moves to the bottom of the window
Ctrl+Q+X Moves to the bottom of the window
Miscellaneous commands (default and classic) Shortcut Action or command
Ctrl+K+D Accesses the menu bar
Ctrl+K+E Changes a word to lowercase
Ctrl+K+F Changes a word to uppercase
Ctrl+K+S File|Save (default and classic only)
Ctrl+Q+A Search|Replace
Ctrl+Q+F Search|Find
Ctrl+Q+Y Deletes to the end of a line
Ctrl+Q+[ Finds the matching delimiter (forward)
Ctrl+Q+Ctrl+[ Finds the matching delimiter (forward)
Ctrl+Q+] Finds the matching delimiter (backward)
Ctrl+Q+Ctrl+] Finds the matching delimiter (backward)
Ctrl+O+A Open file at cursor
Ctrl+O+G Search|Go to line number
Ctrl+O+O Inserts compiler options and directives
Ctrl+O+U Toggles case
system
Shortcut Action or command
F1 Displays context-sensitive Help
F4 Run|Go to Cursor
F5 Run|Toggle Breakpoint
Ctrl+F6 Open Source/Header file
F7 Run|Trace Into
F8 Run|Step Over
F9 Run|Run
F11 View|Object Inspector
F12 View|Toggle Form/Unit
Alt+0 View|Window List
Alt+F2 View|Debug Windows|CPU
Alt+F7 Displays previous error in Message view
Alt+F8 Displays next error in Message view
Alt+F10 Displays a context menu
Alt+F11 File|Include Unit Hdr
Alt+F12 Displays the Code editor
Ctrl+F1 Help|Topic Search
Ctrl+F2 Run|Program Reset
Ctrl+F3 View|Debug Windows|Call Stack
Ctrl+F4 Closes current file
Ctrl+F5 Add Watch at Cursor
Ctrl+F6 Displays header file in Code editor
Ctrl+F7 Evaluate/Modify
Ctrl+F9 Project|Make project
Ctrl+F11 File|Open Project
Ctrl+F12 View|Units
Ctrl+D Descends item (replaces Inspector window)
Ctrl+E View|ClassExplorer
Ctrl+N Opens a new Inspector window
Ctrl+S Incremental search
Ctrl+T Displays the Type Cast dialog
Shift+F7 Run|Trace To Next Source Line
Shift+F11 Project|Add To Project
Shift+F12 View|Forms
Ctrl+Shift+P Plays back a key macro
Ctrl+Shift+R Records a key macro
Ctrl+K+D Accesses the menu bar
Ctrl+K+S File|Save

VC
F1: 帮助

Ctrl+O :Open
Ctrl+P :Print
Ctrl+N :New
Ctrl+Shift+F2 :清除所有书签
F2 :上一个书签
Shift+F2 :上一个书签
Alt+F2 :编辑书签
Ctrl+F2 :添加/删除一个书签
F12 :Goto definition
Shift+F12 :Goto reference
Ctrl+‘Num+‘ :Displays the next symbol definition or reference
Ctrl+‘Num-‘ :Displays the previous symbol definition or reference
Ctrl+J/K :寻找上一个/下一个预编译条件
Ctrl+Shift+J/K :寻找上一个/下一个预编译条件并将这一块选定

Ctrl+End :文档尾
Ctrl+Shift+End :选定从当前位置到文档尾
Ctrl+Home :文档头
Ctrl+Shift+Home :选定从当前位置到文档头
Ctrl+B/Alt+F9 :编辑断点
Alt+F3/Ctrl+F :查找
F3 :查找下一个
Shift+F3 :查找上一个
Ctrl+]/Ctrl+E :寻找下一半括弧
Ctrl+Shift+] :寻找下一半括弧并选定括弧之间的部分(包括括弧)
Ctrl+Shift+E :寻找下一半括弧并选定括弧之间的部分(包括括弧)
F4 :寻找下一个错误/警告位置
Shift+F4 :寻找上一个错误/警告位置
Shift+Home :选定从当前位置到行首
Shift+End :选定从当前位置到行尾
Ctrl+L :剪切当前行
Ctrl+Shift+L :删除当前行
Alt+Shift+T :交换当前行和上一行
Ctrl+Alt+T :Brings up the completion list box
Shift+PageDown :选定从当前位置到下一页当前位置
Shift+PageUp :选定从当前位置到上一页当前位置
Ctrl+Shift+Space:显示函数参数的 Tooltip
Ctrl+Z/Alt+Backspace :Undo
Ctrl+Shift+Z/Ctrl+Y :Redo
F8 :当前位置变成选定区域的头/尾(再移动光标或者点鼠标就会选定)
Ctrl+Shift+F8 :当前位置变成矩形选定区域的头/尾(再移动光标或者点鼠标
就会选定)
Alt+F8 :自动格式重排
Ctrl+G :Goto
Ctlr+X/Shift+Del:Cut
Ctrl+C/Ctrl+Ins :Copy
Ctrl+V/Shift+Ins:Paste
Ctrl+U :将选定区域转换成小写
Ctrl+Shift+U :将选定区域转换成大写
Ctrl+F8 :当前行变成选定区域的头/尾(再移动上下光标或者点鼠标就会选
定多行)
Ctrl+Shift+L :删除从当前位置到行尾
Ctrl+Shift+8 :将所有 Tab 变成`或者还原
Ctrl+T :显示变量类型
Ctrl+↑ :向上滚屏
Ctrl+↓ :向下滚屏
Ctrl+Del :删除当前单词的后半截(以光标为分割)
Ctrl+Backspace :删除当前单词的前半截(以光标为分割)
Ctrl+← :移到前一个单词
Ctrl+→ :移到后一个单词
Ctrl+Shift+← :选定当前位置到前一个单词
Ctrl+Shift+→ :选定当前位置到后一个单词
Ctrl+Shift+T :将本单词和上一个单词互换

Alt+0 :Workspace Window


Alt+2 :Output Window
Alt+3 :Watch Window
Alt+4 :Variables Window
Alt+5 :Registers Window
Alt+6 :Memory Window
Alt+7 :CallStack Window
Alt+8 :Disassembly Window
Ctrl+W :ClassWizard
Alt+Enter :属性

Alt+F7 :Project Settings


F7 :Build
Ctrl+F7 :Compile
Ctrl+F5 :Run
Ctrl+Break :Stops the build
F5 :Go
Ctrl+F10 :Run to cursor
F11 :step into
Alt+F10 :Apply codes changes
Ctrl+F9 :Enable/Disable a breakpoint
Alt+F11 :将 Memory Window 切换到下一种显示模式
Alt+Shift+F11 :将 Memory Window 切换到上一种显示模式
Ctrl+Shift+F9 :去掉所有断点
Ctrl+Shift+F5 :Restarts the program
Ctrl+Shift+F10 :将当前行设为下一条指令执行的行
Alt+Num* :滚动到当前指令
Shift+F11 :跳出当前函数
F9 :断点
F10 :step over
Shift+F5 :停止 Debugging
Ctrl+F11 :Switches between the source view and the

disassembly view for this instruction


Alt+F12 :Queries on the selected object or current context

Alt+F6 :Toggles the docking feature for the window on/off


Shift+Esc :隐藏窗口

Ctrl+Shift+G :?
Ctrl+* :打开 string table
Ctrl+Space :?
Ctrl+F3 :向下查找下一个
Ctrl+Shift+F3 :查找上一个
Ctrl+D :查找
Ctrl+I :向下查找下一个
Ctrl+Shift+I :查找上一个
F6 :?Activates the next pane
Shift+F6 :?Activates the previous pane
Ctrl+M :?Detects duplicate mnemonics in the resource
Alt +O : 头文件与 cpp 文件的交互显示

=====================================================================
===========

F1 显示帮助,如果光标停在代码的某个字符上,显示 MSDN 中相应的帮助内容


F2 书签功能: Ctrl+F2 --在某行设置一个书签(再按一次次是取消)

F2 --跳到下一个书签位置

Shift+F2 --跳到上一个书签位置

Ctrl+Shift+F2 --删除所有书签

F3 查找: Ctrl+F3 --在文件中查找,如果当前光标在一个字符串上,

那么自动查找此字符串.相似的有 Ctrl+F

F3 --查找文件中下一个串

Shift+F3 --查找文件中上一个串

F4(不是流行花园那个) 如果是编译后或者 Find in Files 后,可以逐条定位.

Ctrl+F4 --关闭文件

Alt+F4 --关闭 VC(跟 WINDOWS 定义的一样)

F5 编译并执行 F5 --编译并通过 VC 执行

Ctrl+F5 --不经过 VC,直接执行编译后的 exe

Shift+F5 --F5 运行后,直接从 VC 中停止程序(可以模拟当机情况)

Ctrl+Shift+F5 --重新开始运行

F6 切换窗口 SplitWindow 后,可以转换光标所在的窗口

F7 编译 F7 编译工程

Ctrl+F7 编译当前文件

Alt+F7 工程设置对话框

F8 选择的粘滞键 其实更常用的是按住 Shift+方向键

Alt+F8 选中的代码书写格式对齐

F9 设置断点 Ctrl+F9 删除所有断点

Alt+F9 显示编辑断点的对话框
Ctrl+F9 断点无效

F10 单步执行(Debug 时)

Ctrl+F10 执行到光标所在行

(试试看 Shift+F10 什么效果)

F11 跟踪时进入函数内部

Shift+F11 跳到上一层调用栈

F12 跳到函数定义初(需要带 Browse Info 选项编译,建议不选,生成文件很大)

编辑常用

Ctrl+W 显示 ClassWizard,边界面程序用的比较多

Ctrl+Z/Ctrl+Y Undo/Redo

Ctrl+U 字母转化为小写(有的 VC 没有设置)

Ctrl+Shift+U 字母转化为大写(有的 VC 没有设置)

Ctrl+S 保存(强烈建议编码时经常按两下,省得掉电死机时后悔,呵呵,

该键在多数编辑软件都适用)

Ctrl+D 查找(嗯,如果有 SOFTICE,那么就是呼叫它了)

Ctrl+F 正宗的查找快捷键

Ctrl+G 跳到文件中第 n 行

Ctrl+Shift+G 光标在一个文件名上,直接跳到指定文件

Ctrl+H 替换

Ctrl+J,K #ifdef...#endif 查找配对

Ctrl+L 剪切一行

Ctrl+} 匹配括号(),{}

调试常用
Shift+F9 QuickWatch,并显示关标所在处的变量值

Alt+3 Watch 查看窗口

Alt+4 Variables 监视变量(常用)

Alt+5 显示寄存器

Alt+6 显示内存(常用)

Alt+7 显示堆栈情况(当机了多看看)

Alt+8 显示汇编码

还有一些常用的

Ctrl+TAB 切换打开的文件视图,(如果按住 Ctrl,顺序向后切换)

Ctrl+Shift+TAB 切换打开的文件视图,(如果按住 Ctrl,顺序向前切换)

TAB 选中后,整体后移一个制表符,

Shift+TAB 选中后,整体前移一个制表符,

Alt+0 将焦点移到工作区(ESC 回编辑区)

Alt+2 将焦点移到输出区(ESC 回编辑区)

Ctrl+PgUp 逆序切换工作区视图

Ctrl+PgDn 顺序切换工作区视图

另外,VC 没有设置打开,关闭工作区,和打开关闭输出区的快捷键,如果觉得不方便,

可以自己注册(我设置的是 Ctrl+,和 Ctrl+/).

注册在 Tools => Customize => KeyBoard

You might also like