VC++6.0常用快捷键及对快捷键使用的看法

来源:互联网 发布:html网页引用js文件 编辑:程序博客网 时间:2024/05/21 04:02

         很多软件都提供了鼠标操作对应的快捷键,为什么要快捷键呢?因为快捷键可以很快捷。但是,通常来讲,快捷键能做到的,鼠标基本都可以做到,但鼠标能做到的,却不一定有对应的快捷键。

        我们很熟悉word软件, word中有一些基本的快捷键,比如最常用的Ctrl + c和Ctrl +v, 这些快捷键用起来确实非常方便。但是,我认为,任何事情过犹不及,不要为了使用快捷键而使用快捷键,有些快捷键不便于记忆,而且又不是经常用,在这种情况下,用鼠标操作更好,况且,有时候鼠标的确很方便。

       在软件开发中,熟练使用工具,可以提高软件开发的效率,下面列举出VC++6.0中我自己喜欢用的常用快捷键。


调试
DebugRemoveAllBreakpoints   Ctrl+Shift+F9       Removes all breakpoints
DebugStepOver                            F10                       Steps over the next statement
DebugStepInto                              F11                       Steps into the next statement
DebugGo                                        F5                         Starts or continues the program               (Ctrl + F5 编译连接运行)
DebugToggleBreakpoint             F9                         Inserts or removes a breakpoint
DebugStepOut                              Shift+F11             Steps out of the current function
DebugStopDebugging                Shift+F5               Stops debugging the program

                  
编辑
SelectionFormat                            Alt+F8                   使用智能缩进设置, 格式选择内容                                                                      
SelectAll                                          Ctrl+A                   选择整个文档                       
Find                                                  Ctrl+F                   查找指定文本

FindNext                                         F3                          查找下一个指定文本                            
FindPrev                                         Shift+F3                查找上一个指定文本                               
GoTo                                               Ctrl+G                    转到指定位置                            
DocumentStart                              Ctrl+Home           Moves to the beginning of the file 

DocumentEnd                               Ctrl+End               Moves to the end of the document                    

Cut                                                   Ctrl+X                   剪切被选择的至剪贴板

Copy                                                Ctrl+C                  复制被选择的至剪贴板
Paste                                               Ctrl+V                   插入剪贴板内容到插入点                                   
Redo  (Ctrl + Shift + z)                  Ctrl+Y                   重做上一次取消的动作            
Undo                                               Ctrl+Z                   取消最后的动作     
GoToMatchBrace                          Ctrl+]                    Finds the matching brace
Home                                              Home                  Moves to either the start of the current line or the start of the text on that line
LineEnd                                          End                      Moves to the end of the current line
BrowseGoToDefinition                F12                      显示一个符号定义            
PageDown                                     Page Down        Moves the cursor down one page
PageUp                                          Page Up              Moves the cursor up one page
                                          

文件
New                                               Ctrl+N                   创建一个新的文档, 工程或者工作空间      
FileOpen                                       Ctrl+O                   打开一个现有的文档     
FilePrint                                         Ctrl+P                   打印全部或部分文档              
FileSave                                        Ctrl+S                   保存文档       


补充:

1. Tab                  代码缩进

2. Shift + Tab     代码反向缩进

3. Ctrl + Tab      工程中文件窗口切换

4. Alt + Tab        Windows窗口切换

5. 在单词上双击鼠标,可以选中单词

6. shift可以配合选中部分代码

7. 在大括号附近用ctrl + ], 可以查找匹配的另一个大括号 


         好了,以后如果发现有好用的快捷键,再慢慢熟练。