VS2010 Edition shortcut keys
ctrl+e,d----Formatting All code ctrl+e,f----formatting the selected code ctrl + SHIFT + B Build Solution ctrl + F7 Generate compilation ctrl + O Open File ct RL + SHIFT + O Open Item ctrl + SHIFT + C Display Class View window f4 Display Properties window shift + F4 Show Project Properties window ctrl + SHIFT + E Show Resource View  F1 2 Go To Definition ctrl + F12 go to declaration ctrl + ALT + J Object Browse ctrl + ALT + F1 Help catalog ctrl + F1 Dynamic Help f1 help shift + F1 Current Window Help ctrl + ALT + F3 Help-search shift + ALT + Enter full screen ctrl +-Navigate backwards ctrl + SHIFT +-forward position ctrl + F4 off Document window ctrl + PAGE DOWN cursor positioned above window ctrl + PAGE UP cursor positioned below window ctrl + F6 ctrl + Tab next document window ctrl + SHIFT + F6 ctrl + SHIFT + Tab Previous document window alt + F6 next panel window ctrl + k, Ctrl + L Cancel Remark ctrl + K, Ctrl + C Comment selected code &NBS P CTRL + K, CTRL + U uncomment the selection code ctrl + M, CTRL + O collapse Code definition ctrl + M, CTRL + L expand Code Definition ctrl + DELETE Delete to final ctrl + backspace Delete to prefix shift + TAB Cancel tab ctrl + U-Turn lowercase ctrl + SHIFT + U-turn caps ctrl + SHIFT + END Select to end of document ctrl + SHIFT + Home selection to end of documentStart shift + End Select to end of line shift + Home selection to line start shift + ALT + END Vertical selection to last shift + ALT + Home Vertical selection to front ctrl + SHIFT + PAGE UP Select to the front of this page ctrl + SHIFT + PAGE DOWN select to the end of this page ctrl + end document to navigate to the last ctrl + home document to navigate to the top ctrl + A Select all ctrl + W Choose the current word ctrl + G go to ... ctrl + K, CTRL + P previous label ctrl + K, CTRL + N next label alt + F10 Debug-APPLYC Odechanges ctrl + ALT + BREAK stop debugging ctrl + SHIFT + F9 Cancel all breakpoints ctrl + F9 allow interrupt ctrl + SHIFT + F5 Debug-restart F5 Run Debug ctrl + F5 run not debug  F10 step through program execution f11 stepping through ctrl + J List member ctrl + PAGE down next view ctrl + b Format-Bold ctrl + SHIFT + t format-Text indent Debug Shortcut f6: Build Solution ctrl+f6: Build current project f7: View Code  SHIFT+F7: View Form Designer f5: Start Debugging ctrl+f5: Start (not debug) shift+f5: Stop Debugging ctrl+shift+f5: Restart Debug f9: Toggle Breakpoint ctrl+ F9: Enable/Stop breakpoint  CTRL+SHIFT+F9: Delete all breakpoints f10: Step over  CTRL+F10: Run to Cursor  F11: statement Edit Shortcut shift+alt+ Enter: Toggle Full Screen editing 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 Tags ctrl+i: Incremental search ctrl+shift+i: Reverse Incremental Search & nbsp Ctrl+f: Find ctrl+shift+f: Find f3 in file: Find Next shift+f3: Find previous ctrl+h: Replace ctrl+shift+h: Replace in file  ALT+F12: Find Symbol (List all find 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, But does not move the cursor position. ctrl+shift+l: Delete Current row 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,p: Stop outlining ctrl+e,s: View blank ctrl+e,w: Wrap ctrl+g: Go to the specified line shift+alt+ arrow key: Select Rectangle text alt+ left mouse button: Select rectangle text Ctrl+shift+u: All uppercase ctrl+u: All changed to lowercase code shortcuts ctrl+j/ctrl+k,l: List members ctrl+shift+ SPACEBAR/ctrl+k,p: Parameter information & nbsp Ctrl+k,i: Quick Info ctrl+e,c/ctrl+k,c: Comment selection ctrl+e,u/ctrl+k,u: Deselect comment content ctrl+k,m: Generate Method Stub ctrl+k,x : inserting snippet ctrl+k,s: Inserting an outside code f12: go to the definition of the called procedure 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: Properties Window ctrl+w,t: Task List ctrl+w,x: Toolbox ctrl+w,b: Bookmark window ctrl+w,u: Document Outline ctrl+d,b: Breakpoints window ctrl+ D,i: Immediate Window ctrl+tab: active form Toggle ctrl+shift+n: New Project ctrl+shift+o: Open Project ctrl+shift+s: Save All shift+ Alt+c: New Class ctrl+shift+a: Hidden shortcut key for new Item vs2005 Here I will share some of the shortcuts that are not explicitly pointed out in VS2005, not all shortcut keys, Or some of the common shortcut keys. 1, Ctrl+space directly complete the class or function (originally this is not a hidden shortcut key, but because the Chinese input method to preempt this shortcut key, so ... , the alternate shortcut is Alt+right) 2, shift+delete the entire row delete, and put this line to the Clipboard (at this time can not select a section of content) 3, Shift+insert Paste, a little strange, Ctrl + V can be, Probably for the shift+delete. 4, Ctrl+up,ctrl+down Scroll editor, but try not to move the cursor, the cursor is guaranteed within the visible range 5, ctrl+backspace,ctrl+delete the whole word deleted, Sometimes it is useful 6, ctrl+left,ctrl+right to move the cursor by the whole word (not hidden, and the first few add up is the Ctrl Cursor Control suite) 7, ALT+SHIFT+F10 open to perform renaming, Implements the interface and the abstract class small window (can also use CTRL +, but some Chinese input method uses this) 8, SHIFT+F9 debugging is to open QuickWatch, content is the current cursor where the content 9, F12 jump to the definition, very useful shortcut keys  10, shift+f12 Find all references ---------------------------------------VS2008 shortcut keys Daquan---------------------------- ctrl+m+crtr+o Collapse All outline ctrl+m+crtr+p: Stop outlining ctrL+k+crtr+c: Comment Selection ctrl+k+crtr+u: Deselect comment content ctrl+j: List member IntelliSense shift+alt+enter: Toggle fullscreen Edit 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 Tags ctrl+i: Incremental Search ctrl+shift+i: Reverse Incremental Search ctrl+f: Find ctrl+shift+f: Find f3 in file: Find Next shift+f3: Find Previous ctrl +h: Replace ctrl+shift+h: Replace alt+f12 in file: Find Symbol (List all find results) ctrl+shift+v: Clipboard looping ctrl+ left and RIGHT arrow keys: One word can be moved at a time ctrl+ up and DOWN ARROW keys: Scrolls the code screen, but does not move the cursor position. ctrl+shift+l: Delete Current row 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+e,s: View Blank ctrl+e,w: Wrap ctrl+g: Go to the specified line shift+alt+ arrow key: Select Rectangle text alt+ left mouse button: Select rectangle text ctrl+shift+u: all uppercase ctrl+u: All changed to lowercase code shortcuts ctrl+shift+ SPACEBAR/ctrl+k,p: Parameter information ctrl+k,i: Quick Info ctrl+e,u/ctrl+k,u: Deselect comment Content ctrl+k,m: Generate Method Stub ctrl+k,x: Insert Snippet ctrl+k,s: Insert the outer code  F12: Go to the definition of the called procedure 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 trl+w,p: Properties Window ctrl+w,t: Task List ctrl+w,x: Toolbox ctrl+w,b : Bookmark window ctrl+w,u: Document Outline ctrl+d,b: Breakpoints window ctrl+d,i: Immediate Window ctrl+tab: active form Toggle 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 shift+alt+enter : Toggle Full Screen editing 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 Tags ctrl+i: Incremental search ctrl+shift+i: Reverse Incremental Search ctrl+f: Find ctrl+shift+f: Find in Files
Turn from:
Http://www.cnblogs.com/ruson/archive/2010/09/16/1827816.html
F3: Find the next
SHIFT+F3: Find Previous ctrl+h: replace ctrl+shift+h: Replace alt+f12 in file: Find Symbol (List all find results) Ctrl+shift+v: Clipboard Loop Ctrl + LEFT and RIGHT arrow keys: You can move one word at a time Ctrl + up and down Arrow keys: Scrolls the code screen, but does not move the cursor position. Ctrl+shift+l: Delete Current row 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,p: Stop outlining ctrl+e,s: View blank ctrl+e,w: Wrap-line C Trl+g: Go to the specified line shift+alt+ arrow key: Select rectangle text ALT + left mouse button: Select rectangle text ctrl+shift+u: All uppercase Ctrl+u: all becomes lowercase
I would like to share all of the visual Studio 2005 Shortcuts I have accumulated here, and I hope that we can help you.
With my many experiments, the shortcut keys in VS 2005 are also recognizable in VS 2008 and 2010, but vs 2008 and 2010 define their new shortcut keys. This is necessary: make improvements to existing shortcuts and ensure that people who are accustomed to using the VS 2005 Shortcut will not lose their productivity.
Code writing
Shift + Alt + Ente-Full screen display
Shift + Alt + F10-There are three kinds of effects:
1. When the interface is implemented, press to open the option to implement the interface;
2. When modifying a variable, method, class, and so on, turn on the Rename option;
3. When you have finished writing an object that is not using, open the Using option.
Ctrl + R + E-Encapsulate Field (VS 2008 has basically no need for this shortcut because C # 3.0 's Auto-attribute –auto-implemented properties)
Ctrl + J-List members, including code hints only
Ctrl + Shift + Space-Display parameter information
Tab (Double-click)-Completes the code block, for example, after try, for, do, and press
Ctrl + K + S-outside code, including code block templates only
F6/ctrl + Shift + B-Build Solution
F7-Jump to the form post code, WinForm, WebForm, can also jump back to Design view in WinForm
Shift + F7-Jump back to Design view in WebForm's post code
F8-sequentially toggles the error location in the current file
F12-Go To Definition
Ctrl + _-Go To Definition and return
Ctrl + Shift + _-go To Definition again
Ctrl + Tab-Toggles the currently open active window (code and view design interface, etc.)
Quick Code Templates
"CW" + TAB + tab-console.writeline ();
"Mbox" + Tab + tab-messagebox.show ();
"Prop" + TAB + Tab-property block with get, set accessor
"PROPG" + TAB + TAB-read-only property fast
"Propfull" + tabl + Tab-fast property with full get, set accessor
Code manipulation
Ctrl + K + C-Comments
Ctrl + K + U-Uncomment
Ctrl +]-look for matching parentheses
Ctrl + Shift +]-Select the matching parentheses with the code in it
Ctrl + F-Quick Find
Ctrl + H-Quick Replace
Ctrl + Shift + U-Convert to uppercase
Ctrl + U-Convert to lowercase
Ctrl + K + D-formatting documents
Tab-Increase Indent
Shift + Tab-Decrease Indent
Ctrl + M + M-collapse code, such as placing the cursor in the position of the #region, if, method header, will collapse them
Ctrl +. -Bring up the using menu
Ctrl + E + S-view whitespace (convert spaces to green points, especially handy when looking for extra spaces)
Debug Run
F5-Start debugging
Shift + F5-Stop Debugging
F9-setting breakpoints
Ctrl + Shift + F9-Delete all breakpoints
F10-Process-by-step debugging
F11-sentence-by-statement debugging
Operation of the project
Alt + Enter-Opens the Properties dialog box for the selected item
Ctrl + Shift + N-New project
Shift + Alt + N-New web site
Ctrl + N-New file
Ctrl + Shift + O-Open Project
Shift + Alt + O-Open Web site
Ctrl + O-Open File
Ctrl + Shift + A-Add new items to the project
Shift + Alt + A-Add an existing item to the project
Shift + Alt + C-Add a class to your project
View Call
F4-Properties
Ctrl + Alt + X-Toolbox
Ctrl + Alt + L-Solution Explorer
Ctrl + Alt + S-Server Explorer
Skills
1. Start VS, you can enter "devenv" in the operation;
2. Double-click the Control tool to add the control automatically;
3. Alt + arrow key-the size of the control can be adjusted with the arrow keys;
4. Direction key-Adjust the position of the control;
5. Hold down ALT to select the code in a rectangular way;
6. Remove unwanted Namespaces (Visual Studio 2008 and Visual Studio 2010 apply)
Typically, a class is created, and Visual studio automatically introduces you to System, System.Collections.Generic, System.Text, 3 namespaces, but not necessarily all of them after they are created. And when creating WinForm, WebForm will introduce more unwanted namespaces, keep them too occupied, Visual Studio has already prepared this feature for us, in the class right-click, select: "Organization using" > "Remove and Sort", You can remove the namespaces that you do not need and arrange the namespaces in alphabetical order.
7. Automatic using namespace (shortcut key Ctrl +.):
Usually the code is written for a long time, and you need to use a non-using object later, you need to go back to the code's head to the using, and then go back to writing: How painful it is!
This painful thing vs can be completely agent, first make sure that the name of the object must be written to:
At this point, you can see that there is no using the System.IO, Directory is the red line, you can notice that there is a small rectangle at the beginning, the mouse move up, you can see the options:
Selecting the using System.IO will use the namespace at the top, and selecting System.IO.Directory will add System.IO to the directory and complement the reference.
There is a second way: Right-click on unreferenced objects and select Resolve (parse) to see the same options:
8. Auto-Complete properties
Are you still writing code snippets like this?
public string Property { get ; set ; } |
After entering prop only, press TAB two times to automatically generate:
public int MyProperty { get ; set ; } |
All we have to do is tab, change.
Original link: http://www.cnblogs.com/ju2ender/archive/2009/10/04/visual_studio_vs_csharp.html
VS2008 shortcut keys DaquanCtrl+m+crtr+o Collapse All Outlines
Ctrl+m+crtr+p: Stopping outline display
Ctrl+k+crtr+c: Comment Selection
Ctrl+k+crtr+u: Deselect Comment content
Ctrl+j: List member IntelliSense shift+alt+enter: Toggle Full Screen editing
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
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)
Ctrl+shift+v: Clipboard Looping
CTRL + LEFT and RIGHT arrow keys: One word can be moved at a time
CTRL + UP and DOWN ARROW keys: Scrolls the code screen, but does not move the cursor position.
Ctrl+shift+l: Delete When moving forward
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+e,s: View Blank
Ctrl+e,w: Wrap Line
Ctrl+g: Go to the specified line
shift+alt+ arrow key: Select Rectangle text
ALT + left mouse button: Select rectangle text
Ctrl+shift+u: All Uppercase
Ctrl+u: All changes to lowercase code shortcut keys
ctrl+shift+ SPACEBAR/ctrl+k,p: Parameter information
Ctrl+k,i: Quick Info ctrl+e,u/ctrl+k,u: Deselect comment content
Ctrl+k,m: Generate Method Stub
Ctrl+k,x: Inserting Code Snippets
Ctrl+k,s: Inserting the outer code
F12: Go to the Definition window shortcut key for the called procedure or variable 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
Trl+w,p: Properties Window
Ctrl+w,t: Task List
Ctrl+w,x: Toolbox
Ctrl+w,b: Bookmark window
Ctrl+w,u: Document Outline
Ctrl+d,b: Breakpoint Window
Ctrl+d,i: Immediate Window
Ctrl+tab: Active form Toggle
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
Shift+alt+enter: Toggle Full Screen editing
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
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)
Ctrl+shift+v: Clipboard Looping
CTRL + LEFT and RIGHT arrow keys: One word can be moved at a time
CTRL + UP and DOWN ARROW keys: Scrolls the code screen, but does not move the cursor position.
Ctrl+shift+l: Delete When moving forward
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,p: Stopping outline display
Ctrl+e,s: View Blank
Ctrl+e,w: Wrap Line
Ctrl+g: Go to the specified line
shift+alt+ arrow key: Select Rectangle text
ALT + left mouse button: Select rectangle text
Ctrl+shift+u: All Uppercase
Ctrl+u: All turns lowercase
Other Related:
Turn from:http://www.cnblogs.com/pumaboyd/archive/2008/06/13/1210797.html
First there are two places to be aware of:
1: Tools--Customize "show shortcut keys in ScreenTips" needs to be checked to make it easy to remember shortcut keys. This is the default setting.
2: Import Export settings, tools. Here is the default setting for the entire Vsstudio environment, I am designing the shortcut keys under "C # Environment", if you find that the shortcut keys you use are very large, please change the correct environment.
The basic situation is understood, and the story begins like this:
One Sunday morning woke up, suddenly found that the mouse is missing. Maybe it was the cat from the next house. Momentary nasty, no way, also can only use the keyboard to start Vsstudio. Start-up procedures in a search, if the program too many, hey, eyes are looking for flowers. Still in such a backward way to start the IDE, with shortcut keys AH. is still the default, not set. If you want to set it, it's not a hero. How do I start the IDE in the quickest way? Start-to-run input "devenv". You can call Vsstudio directly. Good, and give you a few more commonly used.
Command line Quick Start
"Inetmgr" IIS Manager, does not have to go to the management to look for, soon can display IIS manages
"SQLWB" Quick Start SQL2005 Enterprise Manager
"ISQLW" This is SQL2000 I also provide, this can play a SQL2000 Query Analyzer.
"Devenv" launches the corresponding version of VS Studio
CTRL Tip Transparent window
This is a more interesting key. VS2005, when you are debugging the code, sometimes the message will obscure the code, this time you press CTRL to make the prompt transparent. VS2008 This transparency effect, visible in more places, you might as well do yourself to see.
F12, CTRL + Minus, CTRL + SHIFT + minus ( video viewing )
These three keys are especially useful when viewing code. With F12 you can quickly find the definition of a function, and you can quickly return to the function's call by CTRL + MINUS sign.
Ctrl+tab, Ctrl+f6, Ctrl+alt + DOWN arrow ( video viewing )
There are 3 ways to switch the active file, which is more convenient than your mouse click.
Ctrl+k,m generation Method Stub ( video View )
This shortcut key is very useful when you write structural code. You can write the definition of a batch of code first, without worrying about the specific implementation. It also allows the compiler to compile and pass.
Tired of writing. In order to intercept these videos also Daoteng for half a day, to provide a well-organized print version of VS2008 shortcut keys for everyone to download. I'm not going to introduce these shortcut keys.
Original link: http://www.cnblogs.com/9999/archive/2009/09/24/1573030.html
vs2010 shortcut Keys Daquan