Visual Studio shortcut keys

Source: Internet
Author: User

 

[Debugging shortcuts]
F6: generate a solution
CTRL + F6: generate the current project
F7: view code
Shift + F7: view the Form Designer
F5: start debugging
CTRL + F5: start execution (not debugging)
Shift + F5: Stop debugging
CTRL + Shift + F5: restart debugging
F9: breakpoint Switching
CTRL + F9: Enable/stop a breakpoint
CTRL + Shift + F9: delete all breakpoints
F10: Process by Process
CTRL + F10: run at the cursor
F11: statement by statement
[Edit shortcuts]
Shift + ALT + enter: Switch to full screen editing
CTRL + B, T/Ctrl + k, K: Switch the bookmarks
CTRL + B, n/Ctrl + k, n: Move to the next bookmarks
CTRL + B, P: Move to the previous bookmarks
CTRL + B, C: Clear all labels
CTRL + I: Progressive search
CTRL + Shift + I: reverse progressive search
CTRL + F: Search
CTRL + Shift + F: find in the file
F3: Find the next
Shift + F3: Find the previous one
CTRL + H: replace
CTRL + Shift + H: Replace in the file
Alt + F12: Search symbols (list all search results)
CTRL + Shift + V: clipboard Loop
CTRL + left and right arrow keys: One word can be moved at a time
CTRL + up and down arrow keys: Scroll the code screen without moving the cursor position.
CTRL + Shift + L: Delete the current row
CTRL + M, M: Hide or expand the current nested folding status
CTRL + M, L: Set all processes to the same hidden or expanded State
CTRL + M, P: Stop outline display Ctrl + E, S: View Blank
CTRL + e, W: automatic line feed
CTRL + G: Go to the specified row
Shift + ALT + Arrow: Select rectangular text
Alt + mouse left button: Select rectangular text
CTRL + Shift + u: all are capitalized
CTRL + u: lowercase for all
[Code shortcut]
CTRL + J/Ctrl + K, L: List Members
CTRL + Shift + Space key/Ctrl + K, P: parameter information
CTRL + K, I: quick information
CTRL + E, C/Ctrl + k, C: Comment the selected content
CTRL + e, U/Ctrl + k, u: cancel the selected comment content
CTRL + K, M: Generate method stubs
CTRL + k, X: insert code segment
CTRL + k, S: insert external code
F12: Go to the definition of the called process or variable
[Window shortcut]
CTRL + W, W: browser window
CTRL + W, S: solution Manager
CTRL + W, C: Class View
CTRL + W, E: Error List
CTRL + W, O: Output View
CTRL + W, P: attribute window
CTRL + W, T: task list
CTRL + W, X: toolbox
CTRL + W, B: Bookmarks window
CTRL + W, u: document outline
CTRL + D, B: breakpoint window
CTRL + D, I: Real-Time Window
CTRL + tab: active form Switching
CTRL + Shift + N: Create a project
CTRL + Shift + O: Open the project
CTRL + Shift + S: Save all
Shift + ALT + C: Create a class
CTRL + Shift + A: new item

 

Common coding skills:
1 to definition: F12;
2. Set bookmarks: CTR + K;
3. Set the task: // todo: Something. view the task Ctrl + W + T;
4 search: Ctrl + F, CTRL + Shift + F;
5 forced smart sensing: Ctrl + J;
6. Force smart sensing to display the parameter information: Ctrl-shift-space;
7. format the entire block: Ctrl + K + F;
8 full screen: Alt + Shift + enter;
9 set bookmarks: Ctrl + B + T, jump to bookmarks: Ctrl + B + n
10 Check matching brackets (switch between left and right brackets): Ctrl +]
11 select the code from the cursor to the beginning (end) of the line: Shift + home (end)
12 switch between method definition and call: Ctrl + Shift + 7 (8)
13. Set the breakpoint: F9
14. Search for all references: Shift + F12
15. Code comments and Mnemonic Methods: Edit + Comments: Ctrl + E, C
16. uncomment. Note the following: Edit + uncomments: Ctrl + e, u
17 format code, mnemonic method: Edit + document (can only be used when the code can be edited): Ctrl + E, D
18 close code: Ctrl + M, O
19 select the long box in the circle: Alt + Shift + mouse
20 in debug mode, "debug-window-disassembly", or CTRL + ALT + d
21. Press Ctrl + enter to insert an empty line above, and press Ctrl + Shift + enter to insert a blank line below. The cursor moves to the beginning of the new line.
22. Use tab to increase indentation and SHIFT + TAB to reduce indentation (the corresponding menu command is in edit-advanced)
23 format the entire code: Ctrl + k, d
24 use Ctrl + W to select the current word
25 single node folding and Opening Switch: Ctrl + M, m
26 use Ctrl + G to jump to the specified row
27 use Ctrl + Delete and CTRL + backspace to delete the subsequent and precursor words respectively.
28 use Ctrl + L to cut the current row, CTRL + Shift + L to delete the current row
29. How do I create and jump to a bookmarks? (Recommended) press Ctrl + k and CTRL + k to create/cancel a bookmarkdonefile. This command is bound to edit. togglebookmark, if your shortcut key is different from this, you can use the command to view the specific shortcut key.
30 use Ctrl + J to help complete the statement.

 

 

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.