Common shortcut keys of Visual Studio in programming

Source: Internet
Author: User
Tags try catch

Debugging shortcuts

F6: generate a solution
CTRL + F6: generate the current project
F7: ViewCode
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

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

CTRL + k press Ctrl + D: Code indent

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

And the best

Automatic Code indent (selected content formatting) Ctrl + K + F [recommended]

Document formatting Ctrl + K + d [recommended]

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

Quick input:

Try catch: Try + two tabs

For if is the same

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.