Statement:
The original address is: Visual Studio common shortcut keys
Common shortcut keys for Visual Studio (ii)
Similar articles recommended:
More efficient use of visual Studio (i)
More efficient use of visual Studio (ii)
Body:
Recently saw many colleagues use VI to develop Ruby,python scripts. Edit code all with the shortcut key, high efficiency.
In fact, visual Stuido also has a lot of shortcut keys, skilled use, can greatly improve work efficiency. This article describes some of the most common shortcut keys
The GIF animated picture used in this article is recorded by the Licecap tool.
Read Catalogue 1:
- vs Shortcut Key Tutorials
- Delete or cut a line (Ctrl + X)
- Formatting the entire document (CTRL + K, CTRL + D)
- IntelliSense (Ctrl + J)
- Collapse All Methods (Ctrl+m,ctrl+o)
- Collapse or expand the current method (Ctrl+m,ctrl+m)
- View function parameters (Ctrl+k, ctrl+p)
- Note (ctrl+k, CTRL + C)
- Insert a blank line below the cursor (ctrl+shift+enter)
- Insert Code Snippet (ctrl+k, Ctrl+s)
vs Shortcut Key Tutorials
Http://www.shortcutworld.com/en/win/Visual-Studio_2010.html
Http://www.dofactory.com/ShortCutKeys/ShortCutKeys.aspx
Delete or cut a line (Ctrl + X)
You do not need to select any text to cut a line, most commonly used to delete a row. Deleting a row can also be used Shift+delete
Formatting the entire document (CTRL + K, CTRL + D)
Used to format the entire document
The specific operation is: Hold down the CTRL key, press the K key, and then press the D key.
Formatting the entire document can also be used (Ctrl+e, ctrl+d), one hand is done, more convenient
IntelliSense (Ctrl + J)
Collapse All Methods (Ctrl+m,ctrl+o)
Expand All Methods (CTRO+M,CTRL+L)
Collapse or expand the current method (Ctrl+m,ctrl+m)
View function parameters (Ctrl+k, ctrl+p)
Memory method: Ctrl+p = Parameter
Note (ctrl+k, CTRL + C)
Anti-Comment The selected code is (Ctrl+k, ctrl+u)
Memory method: Ctrl + c = Comment selected text
Ctrl+u = Uncomment selected text
Insert a blank line below the cursor (ctrl+shift+enter)
Insert blank line above cursor yes; (ctrl+enter)
This shortcut is useful when editing an XML file.
Insert Code Snippet (ctrl+k, Ctrl+s)
Inserting Code Snippets
Note: The actual operation, hold down the CTRL key, press the K key first, then press the S key.
Read Catalogue 2:
- Press the TAB key twice
- Fallback to the previous position of the cursor Ctrl + MINUS SIGN
- Automatically add a using namespace
- Inserting automatic properties
- Find All References Shift+f12
- Show or hide the tab mark (Ctrl + R, CTRL+W)
- Character to lowercase ctrl+u
Press the TAB key twice
Pressing the TAB key twice is useful, for example, when we write a for, a foreach loop, or a try, and a bind event method, you can quickly insert a snippet by pressing the TAB key twice
Automatically bind the event method by pressing the TAB key twice
Fallback to the last position of the cursor: CTRL + MINUS sign
This is very useful, huh?
Automatically add a using namespace
Shortcut keys are: Ctrl +.[ DOT], You can also use the mouse point or CTRL+SHIFT+F10
Inserting automatic properties
Enter prop, then press two times TAB key
Find All References Shift+f12
Action: Speak the cursor on the word, then press SHIFT + F12
Shows or hides the tab mark Ctrl + R, CTRL+W
Character to lowercase ctrl+u
Character to uppercase Ctrl+shift+u
Reproduced Visual Studio shortcut keys