Visual Studio editor indent/unindent at a time with 4 spaces

Source: Internet
Author: User

 

Using Tab as indentation in code is not a good habit, because Tab is not a print character but a control character, that is to say, the display width in different text editors is not necessarily the same, so the display effect is prone to inconsistency. Space is a good fit, because it is a common character, so it is subject to the same effect as other characters, and the display effect will be consistent.

For those who use Tab as indentation, It is very convenient to delete an indent unit at a time. If a Tab corresponds to four spaces, it is inconvenient to delete four spaces if you want to delete an indent unit.

In fact, many text editors, including Visual Studio, support Tab and space conversion.The shortcut keys Tab and Shift + Tab can insert or delete four spaces at a time., The same effect as using Tab for indentation.

This will not cause any inconvenience if you use spaces for indentation.

--Kevin Yang

Related Article

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.