整理自认为有用的Visual Studio 快捷键

培训C/C++有相当长的时间了,看到讲师也是没有对其的代码格式,或者单独耗时进行格式排列,当时认为Visual Studio连一个格式化的shortcut都没有吗?算了,暂时亦步亦趋的走吧。现在5.1假期了,在网上搜索,整理了一下,我认为常用的快捷键。

1.折叠&&展开代码
Ctrl+MM 折叠/展开光标所在的位置的代码;选中区域后,Ctrl+M Ctrl+M 可以折叠/展开选中区域的代码。
2.弹出提示信息
两种方法:Ⅰ. Ctrl+J Ⅱ. Alt+→
4. 快速拷贝或剪切一行
光标只要在某行上,不用选中该行,直接按Ctrl+c 或Ctrl+x 就可以拷贝或剪切该行。
5. 使用任务管理器
创建方法:在要标志的地方输入://TODO:…内容…
使用方法:视图—>任务列表—>注释(View->Task list)
6.定位函数定义
Ctrl+减号 可以快速的找到一个函数的定义,
Ctrl+减号快速的返回到函数的调用处
7.开始debug
F5
8.格式化选中区域
Ctrl+K, Ctrl+F
9.格式化文档
Ctrl+K, Ctrl+D
10.添加/取消breakpoint
F9在光标定位的行上,添加/取消breakpoint, Ctrl+Shift+F9删除所有breakpoint
11.屏蔽某些代码
Ctrl+K Ctrl +C 屏蔽光标定位的某一行 或者 屏蔽选中的内容;
Ctrl+K Ctrl+U 取消屏蔽;

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 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、付费专栏及课程。

余额充值