Visual Studio 2012常用快捷键总结

 

Visual Studio 2012常用快捷键总结

写在前面:

都知道,合理使用快捷键可以提高开发效率。但是Visual Studio提供的快捷键多如牛毛,那我们有没有必要掌握所有快捷键的使用方法呢,答案因人而异。就我个人而言,在开发过程中,我就只用到了其中的很少一部分,但是工作同样进行的很好。所以这篇文章并没有罗列所有的快捷键,只是对自己常用的一些快捷键做了一个总结,希望需要时可以进行查阅。如果你想了解更多快捷键的使用,建议你可以参考博文http://blog.csdn.net/lingxyd_0/article/details/9022037,里面有详细的介绍。

1.回到上一个光标位置/前进到下一个光标位置

1)回到上一个光标位置:使用组合键“Ctrl + -”;

2)前进到下一个光标位置:“Ctrl + Shift + - ”。

2.复制/剪切/删除整行代码

1)如果你想复制一整行代码,只需将光标移至该行,再使用组合键“Ctrl+C”来完成复制操作,而无需选择整行。

2)如果你想剪切一整行代码,只需将光标移至该行,再使用组合键“Ctrl+X”来完成剪切操作,而无需选择整行。

3)如果你想删除一整行代码,只需将光标移至该行,再使用组合键“Ctrl+L”来完成剪切操作,而无需选择整行。

3.撤销/反撤销

1)撤销:使用组合键“Ctrl+Z”进行撤销操作;

2)反撤销:使用组合键“Ctrl+Y”进行反撤销操作。

4.向前/向后搜索

1)使用组合键“Ctrl+I”;

2)键入待搜索文本(将光标移至搜索词输入框位置即可开始输入);

3)键入搜索文本后,可以使用组合键“Ctrl+I”及“Ctrl+Shift+I”前后定位搜索结果,搜索结果会被高亮显示。

4)要结束搜索,可以按“ESC”键或者点击查找框右侧的关闭按钮。

[补充]选择一个单词后,按组合键“Ctrl+F”也可调出查找框口,且搜索结果也会被高亮显示。

5.框式选择

使用组合键“Shift+Alt+方向键(或鼠标)”即可完成框式选择。框式选择允许你同时对代码行和列进行选择。这对批量删除某些代码很方便的哦。

6.在光标所在行的上面或下面插入一行

1)组合键“Ctrl+Enter”:在当前行的上面插入一个空行;

2)组合键“Ctrl+Shift+Enter”:在当前行的下面插入一个空行。

7.定位到行首与行尾

1)home键:定位到当前行的行首;

2)end键:定位到当前行的行尾。

8.选中从光标起到行首(尾)间的代码

1)选中从光标起到行首间的代码:使用组合键“CShift + Home”;

2)选中从光标起到行尾间的代码:使用组合键“Shift + End”。

9.快速插入代码块

请参考我的另一篇文章http://blog.csdn.net/yl2isoft/article/details/9735527

10.调用智能提示

1)方法1:使用组合键“Ctrl+J”;

2)方法2:使用组合键“Alt+→”。

11.调用参数信息提示

对于某些函数体较大的函数来说,想轻松地确认参数在函数内部的使用情况是件比较麻烦的事情。这时可以将光标置于参数名上,再按组合键“Ctrl+Shif+空格”,参数被使用的地方会被高亮显示。

12.快速切换窗口

使用组合键“Ctrl+Tab”(此时可以打开IDE的导航,获得鸟瞰视图)。

13.快速隐藏或显示当前代码段 

使用组合键“Ctrl+M,M”(记住:要按两次M哦)。

14.生成解决方案

使用组合键“Ctrl+Shift+B”。

15.跳转到指定的某一行

1)方法1:组合键“Ctrl+G”;

2)方法2:单击状态栏中的行号。

16.注释/取消注释

1)注释:组合键“Ctrl+K+C”;

2)取消注释:组合键“Ctrl+K+U”。

17.全屏显示/退出全屏显示

使用组合键“SHIFT + ALT + ENTER”。

18.定义与引用

1)转跳到定义:F12;

2)查找所有引用:使用组合键“Shift+F12”。

19.查找和替换

1)查找:使用组合键“Ctrl+F”;

2)替换:使用组合键“Ctrl+H”。

20.大小写转换

1)转小写:使用组合键“Ctrl+ U”;

2)转大写:使用组合键“CTRL + SHIFT + U”。

21.调试相关

1)调试(启动):F5;

2)调试(重新启动):使用组合键“Ctrl+Shift+F5”;

3)调试(开始执行不调试):使用组合键“Ctrl+F5”;

4)调试(逐语句):F11;

5)调试(逐过程):F10;

6)设置断点:F9。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MICROSOFT FOUNDATION CLASS LIBRARY : ShieldPower AppWizard has created this ShieldPower application for you. This application not only demonstrates the basics of using the Microsoft Foundation classes but is also a starting point for writing your application. This file contains a summary of what you will find in each of the files that make up your ShieldPower application. ShieldPower.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. ShieldPower.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CShieldPowerApp application class. ShieldPower.cpp This is the main application source file that contains the application class CShieldPowerApp. ShieldPower.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Visual C++. ShieldPower.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to create and edit message maps and dialog data maps and to create prototype member functions. res\ShieldPower.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file ShieldPower.rc. res\ShieldPower.rc2 This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file. ///////////////////////////////////////////////////////////////////////////// AppWizard creates one dialog class: ShieldPowerDlg.h, ShieldPowerDlg.cpp - the dialog These files contain your CShieldPowerDlg class. This class defines the behavior of your application's main dialog. The dialog's template is in ShieldPower.rc, which can be edited in Microsoft Visual C++. ///////////////////////////////////////////////////////////////////////////// Other standard files: StdAfx.h, StdAfx.cpp These files are used to build a precompiled header (PCH) file named ShieldPower.pch and a precompiled types file named StdAfx.obj. Resource.h This is the standard header file, which defines new resource IDs. Microsoft Visual C++ reads and updates this file. ///////////////////////////////////////////////////////////////////////////// Other notes: AppWizard uses "TODO:" to indicate parts of the source code you should add to or customize. If your application uses MFC in a shared DLL, and your application is in a language other than the operating system's current language, you will need to copy the corresponding localized resources MFC42XXX.DLL from the Microsoft Visual C++ CD-ROM onto the system or system32 directory, and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation. For example, MFC42DEU.DLL contains resources translated to German.) If you don't do this, some of the UI elements of your application will remain in the language of the operating system. /////////////////////////////////////////////////////////////////////////////

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值