Here I have accumulated all of the Visual Studio 2005 shortcut keys to share with you, I hope to help you.
After my experiments, the shortcuts in VS 2005 are also recognizable in VS 2008, 2010, but vs 2008 and 2010 define their new shortcut keys. This is necessary: improve existing shortcuts and ensure that people who are accustomed to the VS 2005 shortcuts do not lose productivity.
Code writing
Shift + Alt + Ente-Full screen display
Shift + Alt + F10-has three kinds of effects:
1. When implementing the interface, press, you can open the option to implement the interface;
2. Open the Rename option when modifying a variable, method, class, and so on;
3. When you have finished writing an object that is not using, open the Using option.
Ctrl + R + E-Encapsulate Field (VS 2008 already basically does not need this shortcut key, because C # 3.0 's Automatic attribute –auto-implemented properties)
Ctrl + J-List members, including code hints only
Ctrl + Shift + space-Display parameter information
Tab (press two)-padded code block, for example, after try, for, and do
Ctrl + K + S-outer-side code, only code block template
F6/ctrl + Shift + B-Build Solution
F7-Jump to form post code, WinForm, WebForm, can also jump back to Design view in WinForm
Shift + F7-in WebForm code, skip back to Design view
F8-sequentially toggles the error position 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, and so on)
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 quick
"Propfull" + tabl + Tab-Properties with full get, set accessor quick
Code actions
Ctrl + K + C-Notes
Ctrl + K + U-Uncomment
Ctrl +]-Find a matching bracket
Ctrl + Shift +]-Select a matching bracket 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-format document
Tab-Increase Indent
Shift + Tab-Decrease Indent
Ctrl + M + M-collapse code, such as placing the cursor in the position of #region, if, method headers, will collapse them
Ctrl +. -Pull the Using menu
Ctrl + E + S-view whitespace (convert spaces to green dots, especially handy when looking for extra spaces)
Debug Run
F5-Start debugging
Shift + F5-Stop Debugging
F9-Set Breakpoints
Ctrl + Shift + F9-Remove all breakpoints
F10-Process debugging
F11-Per-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 a project
Shift + Alt + C-Add class to 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 operation;
2. Double-click the Control tool to automatically add controls;
3. Alt + Direction Key-The use of the arrow keys to fine-tune the size of the control;
4. Direction key-Adjust the position of the control;
5. Hold down ALT, you can 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 will automatically introduce you to System, System.Collections.Generic, System.Text, these 3 namespaces, but you don't need them all when you create them. When you create WinForm, WebForm, you introduce more unwanted namespaces and leave them too occupied, Visual Studio has already prepared this feature for us by right-clicking the mouse in the class and selecting: "Organize using" > "Remove and Sort". You can remove unwanted namespaces and arrange the namespaces in alphabetical order.
7. Automatic using namespaces (shortcut key CTRL +.):
Usually the code is written for a long time, in the following need to use an unused object, need to go back to the head of the code using, and then go back to write: How painful it is!
This painful thing vs. can be a complete 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 System.IO, Directory is a red line, you can notice that the beginning of a small rectangle, the mouse moved up, you can see the option:
Selecting a using System.IO the namespace at the top, and selecting System.IO.Directory adds System.IO to the directory before the full reference.
There's a second way: Right-click on unreferenced objects, select Resolve (parse), and see the same options:
8. Automatic completion of properties
Are you still writing code snippets like that?
Copy Code code as follows:
public string Property {get; set;}
When you enter prop only, press TAB two times to automatically generate:
Copy Code code as follows:
public int MyProperty {get; set;}
All we have to do is tab, modify.
VS2008 shortcut key Daquan
Ctrl+m+crtr+o Collapse All Outlines
Ctrl+m+crtr+p: Stopping outline display
Ctrl+k+crtr+c: Note Selection
Ctrl+k+crtr+u: Uncomment the selected annotation 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: Finding
Ctrl+shift+f: Finding in Files
F3: Find Next
SHIFT+F3: Find Previous
Ctrl+h: Replacing
Ctrl+shift+h: Replacing in Files
ALT+F12: Find Symbols (List all find results)
Ctrl+shift+v: Clipboard Loops
CTRL + LEFT ARROW key: One word can be moved at a time
CTRL + UP and DOWN ARROW: Scrolls the code screen without moving the cursor position.
Ctrl+shift+l: Delete When moving forward
Ctrl+m,m: Hides or expands the current nested collapse state
CTRL+M,L: Set all procedures to the same hidden or expanded state
Ctrl+e,s: View Blank
Ctrl+e,w: Wrapping automatically
Ctrl+g: Go to the specified line
shift+alt+ arrow key: Select rectangular text
ALT + left mouse button: Select rectangular text
Ctrl+shift+u: all turned to uppercase
Ctrl+u: All changed to lowercase code shortcut keys
ctrl+shift+ space Bar/ctrl+k,p: Parameter information
Ctrl+k,i: Quick Info ctrl+e,u/ctrl+k,u: Uncomment the selection
Ctrl+k,m: Generating method stubs
Ctrl+k,x: Inserting Code Snippets
Ctrl+k,s: Insert the outer side code
F12: Go to the Definition window shortcut key for the calling 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: Bookmarks Window
Ctrl+w,u: Document Outline
Ctrl+d,b: Breakpoints Window
Ctrl+d,i: Instant 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: Finding
Ctrl+shift+f: Finding in Files
F3: Find Next
SHIFT+F3: Find Previous
Ctrl+h: Replacing
Ctrl+shift+h: Replacing in Files
ALT+F12: Find Symbols (List all find results)
Ctrl+shift+v: Clipboard Loops
CTRL + LEFT ARROW key: One word can be moved at a time
CTRL + UP and DOWN ARROW: Scrolls the code screen without moving the cursor position.
Ctrl+shift+l: Delete When moving forward
Ctrl+m,m: Hides or expands the current nested collapse 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: Wrapping automatically
Ctrl+g: Go to the specified line
shift+alt+ arrow key: Select rectangular text
ALT + left mouse button: Select rectangular text
Ctrl+shift+u: all turned to uppercase
Ctrl+u: all changed to lowercase
First there are two places to note:
1: Tool-> Custom-> "show shortcut keys in ScreenTips" needs to be checked to facilitate memory shortcuts. This is the default setting.
2: Tool-> Import Export Settings. This is the default setting for the entire Vsstudio environment, and I've designed the shortcut keys under the C # environment, and if you find that the shortcuts you're using are very different from what I've listed, please change the correct environment.
The basics are understood, and the story begins as follows:
One Sunday morning when I got up, I found the mouse was missing. Maybe it was the cat from the next house. A nasty, no way, can only use the keyboard to start Vsstudio. Start-> program in a search, if the program too much, hey, the eyes are looking for flowers. Are you still starting the IDE in such a backward way, using a shortcut key? Or default, not set. If you want to set it is not a hero. How do you start the IDE the fastest way? Start-> run-> enter "Devenv". You can call Vsstudio directly. Yes, I'll give you a few common ones.
Command line Quick Launch
"Inetmgr" IIS Manager, no need to go to the management to find, you will soon be able to display the IIS management
"SQLWB" Quick Start SQL2005 Enterprise Manager
"ISQLW" This is SQL2000 I also provide a bit, this can serve as SQL2000 Query Analyzer.
"Devenv" launches the corresponding version of VS Studio
Ctrl prompt Transparent window
This is a more interesting key. VS2005, when you are debugging code, sometimes the hint message will block the code, this time you press CTRL to make the hint transparent. VS2008 this transparent effect, in more places visible, you may wish to see for yourself.
F12, CTRL + Minus, CTRL + SHIFT + MINUS sign
These three keys are especially useful when viewing the code. By F12 you can quickly find the definition of a function by Ctrl + minus you can quickly return to the function's call point.
Ctrl+tab, Ctrl+f6, Ctrl+alt + DOWN arrow
3 ways to switch the active file, more convenient than you click with the mouse Oh.
Ctrl+k,m Generation Method Stub
This shortcut is very useful when you write the structural code, OH. You can write the definition of a batch of code first, but do not care about the specific implementation. It also allows the compiler to compile through.
I'm tired of writing. In order to intercept these videos also for half a day, to provide a tidy print version of VS2008 shortcut keys to facilitate the download. I'm not going to introduce these shortcuts.