Tips for Visual Studio [memo]

Source: Internet
Author: User

1. How to adjustCodeTypographical format?
Select: Edit-> advanced-> set the document format.
Or edit-> advanced-> set the format of the selected code.
Format the CS code: Ctrl + K + F
Format aspx code: Ctrl + K + d

2. How to jump to a specified row?
Two Methods: I. CTRL + G
Ii. Click the row number in the status bar

3. How to Create a rectangular selection area?
Two Methods: I. Hold down the Alt key and drag the mouse.
Ii. Press SHIFT + ALT and click the upper left and lower right positions of the rectangle.

4. How to quickly hide or display the current code segment?
CTRL + M, m

5. How to quickly switch between different windows?
CTRL + Tab

6. How to generate a solution?
CTRL + Shift + B

7. How to quickly add code segments?
Enter prop and press TAB twice to insert automatic attributes.
Public int myproperty {Get; set ;},

(Enter try, class, foreach, and so on. Pressing the tab twice also has a similar effect .)

8. How to call smart prompts?
Two Methods: I. CTRL + J
Ii. Alt + →

9. How to call the parameter information prompt?
Place the cursor over the parameter name, and enter Ctrl + shif + space.

10. How can I view the detailed definition of the code?
Open: View-> Code definition window
Then you can point the mouse to a method on the page.

11. How to create a region to facilitate code reading?
# Region
Code Area
# Endregion

12. How can I modify attributes of multiple controls at the same time?
Select multiple controls and right-click the attributes. The common attributes of these controls will appear. After modification, all the controls will change.

13. How to quickly add a namespace?
For a class that references a DLL but does not reference its namespace in the code, enter the class name and press Ctrl +. On the class name, you can automatically add the reference namespace statement for the class.

14. How can I quickly copy or cut a row?
The cursor can copy or cut the row as long as it is on a line without selecting this line. Press Ctrl + C or Ctrl + X.

15. How to Use the task manager?
If the project we developed is large and some code in the project is not complete, we can mark it for future search.

Create method: Enter: // todo:... content...
Usage: View-> task list-> comment

 

There is an electronic version of vs tool skill manual for you to see.

Reference Source:
Shortcut for Visual Studio. NET 2003 ide)

Visual Studio Skills 1

Visual Studio Skills 2

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.