Some useful shortcuts and tips for VS (keep updating)

Source: Internet
Author: User

In the case where the text is not selected:

Ctrl+x clipping and deleting the current row can be used to quickly delete the entire line of code

CTRL + C Copy the code of the current line

Ctrl+l Delete When moving forward

Key combinations, you need to press two times:

Ctrl+k,ctrl+c comment All the currently selected code

Ctrl+k,ctrl+u Uncomment all the currently selected code

Ctrl+m,ctrl+m expanding or collapsing code blocks

Ctrl+k,ctrl+d Formatting documents

Other:

F12 go To Definition

CTRL + (number key-) Navigate backwards to position the last cursor

ctrl+shift+ (-) forward navigation

Shift+home Check the code before the current line cursor

Shift+end Check the code after the current line cursor

Shift+alt+enter full-screen coding area, write code safely

Shift+alt+ arrow key to select Code by Rectangle box

ALT + Mouse Box selection effect ditto

Some useful shortcuts and tips for VS (keep updating)

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.