How to align messy code in VC6.0

Source: Internet
Author: User

Turn from: http://qiusuoge.com/7850.html

Use shortcut keys to align messy code, when writing programs, sometimes only consider the algorithm of the program, and forget the code indentation format. Causing a piece of code to write out is very messy. At this point, you can press the ALT+F8 key combination to align the code.

Using shortcut keys to align multiple lines of irregular code in an instance is a waste of time if you do not use the shortcut, but it is very time-consuming to align with a single line, but it is also necessary to use shortcut key alignment in a certain coding specification. If you write all your code on one line, you cannot complete the alignment.

A shortcut to move multiple lines of code.

There are a number of shortcut keys that can move code more than one line in Visual C + +, such as a shortcut key that moves multiple lines of code to the left shift+ctrl+ M, and a shortcut key that moves multiple lines of code to the right as a whole is the TAB key. Both of these move methods keep the original alignment method intact and move the whole.


After testing, these shortcuts are really feasible.

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.