Common shortcut keys of Visual Studio

Source: Internet
Author: User

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 (HTML, XML, JS, C # code can be annotated, but CSS Code cannot be annotated)
CTRL + e, U/Ctrl + k, u: cancel the selected comment content

CTRL + K, M: generate the method body (the cursor must be placed on the method name first)
CTRL + k, X: insert the peripheral code segment
CTRL + k, S: insert C # code segment

F12: To definition; Shift + F12: to reference

F5: Run and debug; Ctrl + F5: run but not debug; Shift + F5: Stop debugging

F7: view code; Shift + F7: View designer

F4: Display attribute window

F10: Process-by-process debugging, F11: Statement-by-statement debugging

CTRL + B: New breakpoint

CTRL + Shift + F9: Clear all breakpoints

CTRL + Shift + B generate Solution

Shift + ALT + enter: Full Screen

CTRL + Shift + V: cyclic clipboard

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.

Right-click + L to expand C # code
Right-click + L + O fold C # code

CTRL + k, K: Label/unlabel
CTRL + k, n: Go to the next tag
CTRL + K, P: Go to the previous tag
CTRL + K, L: Delete All tags

 

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
CTRL + Shift + V: clipboard Loop
Shift + ALT + enter: Switch to full screen editing

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.

Right-click + L to expand C # code
Right-click + L + O fold C # code

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 + 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

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

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.