Visual Studio shortcut keys

Source: Internet
Author: User

1, automatic typesetting (similar to VC6 in the Alt+f8)
Edit. Formatting the selection Ctrl + K,ctrl + F correctly indents the selected lines of code based on the surrounding lines of code.

2, comment and remove the annotation function.

Edit. Note Selection Ctrl + K,ctrl + C uses the correct comment syntax for the programming language to mark the current line of code as a comment.

Edit. Uncomment the selection Ctrl + K,ctrl + U Removes the comment syntax from the current line of code.

Moves the insertion point to the next curly brace in the document.
Edit. Go to curly braces Ctrl +] Moves the insertion point to the next curly brace in the document.

Edit. Scroll down one line Ctrl + DOWN ARROW to scroll the text down one line. Available only for text editors.
Edit. Scroll up one line Ctrl + up ARROW to scroll the text up one line. Available only for text editors.

How to find a solution
View. Solution Explorer Ctrl + Alt + L Displays Solution Explorer, which lists the projects and files in the current solution

Display the Toolbox
View. Toolbox Ctrl + Alt + X Displays the toolbox, which contains controls and other items that can be included in code or used with code.

Clear all breakpoints in a project
Debug. Delete all breakpoints Ctrl + Shift + F9 clears all breakpoints in the project.

Debug. Disassembly Ctrl + Alt + D displays the Disassembly window.
Debug. Toggle Breakpoint F9 Sets or removes a breakpoint at the current line.

VS2008 shortcut keys
New Project Ctrl+shift+n
New Site Shift+alt+n
File Ctrl + N
Open Project/Solution Ctrl+shift+o
Open Web site Shift+alt+o
Open File Ctrl+o
Save current file Ctrl+s
Save All Ctrl+shift+s
Add New Item Ctrl+shift+a
Add an existing Item Shift+alt+a
Add Class Shift+alt+c
Undo Ctrl + Z
Repeat Ctrl+y
Go to Ctrl+g
Looping through the copied items in the Clipboard ctrl+shift+v
Formatting a document Ctrl+e,d
Sets the format of the selection ctrl+e,f
Convert to uppercase Ctrl+shift+u
Convert to lowercase ctrl+u
Remove horizontal blank ctrl+e,\
View Blank Ctrl+e,s
Line Wrap Ctrl+e,w
Incremental Search Ctrl+i
Note Selection Ctrl+e,c
Uncomment selection Ctrl+e,u
Quick Find Ctrl+f
Quick Replace Ctrl+h
Find ctrl+shift+f in Files
Find the next F3
Find Previous Shift+f3
Replace Ctrl+shift+h in a file
Find Symbol ALT+F12
Toggle Bookmarks Ctrl+b,t
Enable Bookmarks Ctrl+b,e
Previous Bookmark Ctrl+b,p
Next Bookmark Ctrl+b,n
Clear Bookmark Ctrl+b,c
Add Task List Shortcut ctrl+e,t
Toggle Outline Display Expand Ctrl+m,m
Toggle All Outline Display ctrl+m,l
Stop Outlining Ctrl+m,p
Collapse to Definition Ctrl+m,o
Production method Stub ctrl+k,m
List Members Ctrl+k,l
Parameter Information ctrl+k,p
Quick Info Ctrl+k,i
Complete the word ctrl+k,w
Insert Code Snippet Ctrl+k,x
External code Ctrl+k,s
Code F7
Designer Shift+f7
Server Resource Manager ctrl+w,l
Solution Explorer Ctrl+w,s
Class View Ctrl+w,c
Code Definition Window Ctrl+w,d
Object Browser Ctrl+w,j
Error List Ctrl+w,e
Output Ctrl+w,o
Properties Window Ctrl+w,p
Task List Ctrl+w,t
Toolbox Ctrl+w,x
Full Screen display Shift+alt+enter
Position ctrl+-backwards
Forward positioning ctrl+shift+-
Property Page Shift+f4
Find Symbol Results CTRL+W,Q
Bookmark Window Ctrl+w,b
Command Window Ctrl+w,a
Document Outline Ctrl+w,u
Resource View Ctrl+w,r
Macro Explorer Alt+f8
Web browser ctrl+w,w
Renaming F2
Extraction Method Ctrl+r,m
Encapsulate Field Ctrl+r,e
Extraction Interface Ctrl+r,i
To promote a local variable to a parameter ctrl+r,p
Remove Parameter Ctrl+r,v
Rearrange parameter Ctrl+r,o
Build Solution F6
Build Current Project Shift+f6
Start Debugging F5
Keep F5.
All interrupts Ctrl+alt+break
Stop Debugging Shift+f5
Restart Ctrl+shift+f5
Start execution (without debugging) Ctrl+f5
Exception ctrl+d,e
Statement F11
Jump out of Shift+f11
Process F10
Toggle Breakpoint F9
Delete all Breakpoints Ctrl+shift+f9
Breakpoint Ctrl+d,b
Instant Ctrl+d,i
Fast monitoring Ctrl+d,q
Monitoring 1 Ctrl+d,w
Monitoring 2 ctrl+d+w,2
Monitoring 3 ctrl+d+w,3
Monitoring 4 ctrl+d+w,4
Auto Window Ctrl+d,a
Local variable Ctrl+d,l
Call Stack Ctrl+d,c
Thread Ctrl+d,t
Toggles the current thread flag status Ctrl+8
Only the thread that displays the flag ctrl+9
Module Ctrl+d,m
Process Ctrl+d,p
Anti-compilation Ctrl+alt+d
Register Ctrl+d,r
Memory 1 Ctrl+d,y
Memory 2 ctrl+alt+m,2
Memory 3 ctrl+alt+m,3
Memory 4 ctrl+alt+m,4
Attach to Process Ctrl+alt+p
Code Snippet Manager ctrl+k,ctrl+b
Run the current macro ctrl+shift+p
Record Current Macro Ctrl+shift+r
Macros IDE ALT+F11
Test Ctrl+r,t in the current context
All test ctrl+r,a in the solution
How to implement Ctrl+f1,h
Search Ctrl+f1,s
Catalogue Ctrl+f1,c
Index Ctrl+f1,i
Help Favorites Ctrl+f1,f
Dynamic Help Ctrl+f1,d
Index result Ctrl+f1,t

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.