VC6.0 common shortcut keys Daquan _c language

Source: Internet
Author: User

This article summarized the VC6.0 commonly used shortcut key operation, grasps these shortcut key operation, for the VC process Development efficiency enhancement has the very big help! Common shortcut keys are summarized as follows:

1. Does the parentheses in the test program match
move the cursor to the brackets (such as braces {}, square brackets [], parentheses (), and angle brackets <>) that you want to detect, and type the shortcut key "Ctrl +]". If the parentheses match correctly, the cursor jumps to the matching brackets, or the cursor does not move, and the chassis speaker emits a warning.

2. View macro definitions for a macro (or variable, function)
move the cursor to a macro you want to know, like the most common declare_map_message click on the F12 (or the go to defition of ...) in the right-click menu, and if no browse files are established, a prompt dialog box appears. OK, and then you jump to the place where you define those things.

3. Format a messy source code
Select the source code, press Atl+f8.

4. A member variable or function cannot be displayed in edit state
Remove the project extension to the. ncb file and reopen the project.

5. How to organize a large number of classes in the ClassView view
you can right-click a new folder in the ClassView view and drag classes with similar properties to the corresponding folder to make the entire view appear clear

6. Positioning preprocessing Specifies
Locate the cursor in the source file to the symmetric #if, #endif, and use Ctrl+k.

7. How to add Lib to current project in system
in Project |   Settings |   Link | Object/library Modules: Enter Lib name, different Lib open with empty.

8. How to add a header file (. h) from the system to the current project
#include <filename.h>, told to compile to the VC system directory to find; use #include "FileName.h" to tell the compiler to find it in the current directory.

9. How to use assembly debugging in Studio
Press Ctrl+f7 in the debugger state of the workbench.

10. How to handle system messages that Classziard cannot find
if you want to handle system messages such as Wm_nchittest in ClassWizard, change the Message Filter to window in the ClassWizard class info page.

11. How to clean Delete a class
remove the corresponding. h and. cpp files from the FileView in workspace, and then close the project and delete the corresponding. h and. cpp files and. clw files from the actual folder.

12. If you want the console application to support MFC class libraries
you can introduce the MFC library in a console application, but the console application defaults to Single-threaded, MFC is multithreaded, to resolve the conflict, in the Project setting->c/c++ option, select Code Generation, Use the Run-time library drop-down box to select the debug multithread.

13. How to make an. exe file with executable code only
in the NT under the VC open file to the resources for opening *.exe files, directly modify the resource file, and then save.

14. Ctrl+d
position the cursor in the search editor basket.

15. Ctrl+b
to view all breakpoints

16. Ctrl+tab
quick switch to different windows

17. Label application
when looking for code, set the label according to the lookup criteria, and then use F2 to look down or shift+f2 up, better than any other search. Because there is a green arrow on the left side of the code.

18. Select the code to press F1 to go directly to the corresponding Help option for this code.

19. Open File
There are several ways to open a file: Double-click the Class View, double-click the file through the file view, open the file through the menu open, double-click the dialog box in the resource view to generate a message to enter the file
The first way requires a more complete class of information
 
Readers can make code edits a lot faster if they are able to use these methods flexibly!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.