Visual Studio shortcut keys

Source: Internet
Author: User

----Revoke an anti-revocation----

CTRL + Z: Undo

Ctrl+y: Anti-revocation

----Select the rectangle text----

Shift+alt+ ARROW keys

or ALT + left mouse button

----Code Comment related----

Ctrl+e,c/ctrl+k,c: Comment Selection
Ctrl+e,u/ctrl+k,u: Deselect Comment content

----Code Folding opens----

Ctrl+m,m: Hides or expands the currently nested collapsed state

CTRL+M,L: Set all procedures to the same hidden or expanded state

Ctrl+m,o: Collapse All methods

----Code Layout----

Ctrl+k,d: Fast code formatting (all)

Ctrl+k,f: Selected code formatting (partial)

----the cursor forward and back----

Go back to the previous cursor position: Use the combo key "Ctrl +-";

Advance to the next cursor position: "Ctrl + Shift +-".

-----Debug Program-related----

Commissioning (start): F5;

Debug (Reboot): Use the combination key "Ctrl+shift+f5";

Debug (Start Without Debugging): Use the combination key "Ctrl+f5";

Debug (per-statement): F11;

Commissioning (step-by-step): F10;

Set breakpoint: F9.

CTRL+D,Q: Quickly monitor variables while debugging

F12: Go to the definition of the called procedure or variable

-----Code Parameters Related-----

Ctrl+j/ctrl+k,l: List Members
ctrl+shift+ SPACEBAR/ctrl+k,p: Parameter information
Ctrl+k,i: Quick Info

-----Search Replace related----

Ctrl+i: Incremental Search
Ctrl+shift+i: Reverse Incremental Search
Ctrl+f: Find
Ctrl+shift+f: Finding in Files
F3: Find the next
SHIFT+F3: Find Previous
Ctrl+h: Replace
Ctrl+shift+h: Replace in file
ALT+F12: Find Symbol (List all find results)

------Bookmark-related------

Ctrl+b,t/ctrl+k,k: Toggle Bookmark Switch
Ctrl+b,n/ctrl+k,n: Move to Next Bookmark
Ctrl+b,p: Move to previous bookmark
Ctrl+b,c: Clear All labels

------Window-related-------

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: Properties Window
Ctrl+w,t: Task List
Ctrl+w,x: Toolbox
Ctrl+w,b: Bookmark window
Ctrl+w,u: Document Outline

------Project-related--------

Ctrl+shift+n: New Project
Ctrl+shift+o: Open Project
Ctrl+shift+s: Save All
Shift+alt+c: New Class
Ctrl+shift+a: New Item

----other shortcut keys----

Ctrl+g: Go to the specified line

Ctrl+k,m: Generate Method Stub

ALT+SHIFT+F10: Adding references to implement interfaces

Visual Studio shortcut keys

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.