VS2010 vs2008 vs2005 Shortcut key Daquan _ practical skills

Source: Internet
Author: User
Tags form post lowercase visual studio 2010
VS2010 version shortcut keys
CTRL+E,D----Format all of the code
CTRL+E,F----Format the selected code
CTRL + SHIFT + B Build Solution
CTRL + F7 Build compilation
CTRL + O Open File
CTRL + SHIFT + o Open Project
CTRL + SHIFT + C Show Class View window
F4 Display Properties Window
SHIFT + F4 display Project Properties window
CTRL + SHIFT + E display Resource View
F12 go To Definition
CTRL + F12 go to Declaration
CTRL + ALT + J Object Browsing
CTRL + ALT + F1 Help Directory
CTRL + F1 Dynamic Help
F1 Help
SHIFT + F1 Current Window Help
CTRL + ALT + F3 Help-Search
SHIFT + ALT + Enter Full-screen display
CTRL +-Navigate backwards
CTRL + SHIFT +-forward positioning
CTRL + F4 Close 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 Note selected code
CTRL + K, CTRL + U cancel comments on the selection code
CTRL + M, CTRL + O collapse Code definition
CTRL + M, CTRL + L expand Code Definition
CTRL + DELETE to suffix
CTRL + backspace Delete to prefix
SHIFT + TAB to cancel tab
CTRL + u turn to lowercase
CTRL + SHIFT + U Turn Capital
CTRL + SHIFT + END selection to document
CTRL + SHIFT + Home Select to start at end of document
SHIFT + End Select to End-of-line
SHIFT + Home Select to start at line
SHIFT + ALT + END vertical selection to last end
SHIFT + ALT + Home Vertical Select to front
CTRL + SHIFT + PAGE UP Select to front of this page
CTRL + SHIFT + PAGE DOWN select to the back of this page
CTRL + END Document navigates to the last
CTRL + Home Document navigates to the front
CTRL + a Select all
CTRL + W Select the current word
CTRL + G go to ...
CTRL + K, CTRL + P previous label
CTRL + K, CTRL + N next tab
ALT + F10 Debugging-applycodechanges
CTRL + ALT + BREAK stop debugging
CTRL + SHIFT + F9 Cancel all breakpoints
CTRL + F9 allow interrupts
CTRL + SHIFT + F5 Debug-Start again
F5 Run debugging
CTRL + F5 run without Debugging
F10 Across program execution
F11 Single Step execution
CTRL + J List Members
CTRL + PAGE down next view
CTRL + B Format-Bold
CTRL + SHIFT + t format-text indent
Debugging shortcut Keys
F6: Build Solution
CTRL+F6: Build Current project
F7: View Code
Shift+f7: View the form Designer
F5: Start Debugging
Ctrl+f5: Start execution (without debugging)
SHIFT+F5: Stop Debugging
Ctrl+shift+f5: Restart debugging
F9: Toggle Breakpoint
CTRL+F9: Enable/Stop breakpoints
CTRL+SHIFT+F9: Remove All breakpoints
F10: Progressive
CTRL+F10: Run to Cursor
F11: Statement-by-byte
Edit shortcut Keys
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
Code shortcut keys
Ctrl+j/ctrl+k,l: Listing members
ctrl+shift+ space Bar/ctrl+k,p: Parameter information
Ctrl+k,i: Quick Info
Ctrl+e,c/ctrl+k,c: Note Selection
Ctrl+e,u/ctrl+k,u: Uncomment the selected annotation content
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 of the calling procedure or variable
window shortcut keys
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: 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
VS2005 hidden shortcut keys
Here I'm going to share some of the shortcuts that are not explicitly identified in the VS2005, not all shortcuts, or some of the most 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, so ... , the alternate shortcut key is Alt+right)
2, Shift+delete whole line Delete, and put this line to the Clipboard (this time can not select a section of content)
3, Shift+insert Paste, a little strange, Ctrl + V can be, probably for and shift+delete corresponding bar
4, Ctrl+up,ctrl+down Scroll editor, but try not to move the cursor, the cursor guarantee within the visible range
5, Ctrl+backspace,ctrl+delete Whole word deletion, sometimes very useful
6, ctrl+left,ctrl+right the whole word to move the cursor (not counting hidden, and the preceding several add up is the Ctrl Cursor Control kit)
7, ALT+SHIFT+F10 Open the implementation of renaming, implementation interface and abstract class of small window (also can use CTRL +., but some Chinese input method to use this)
8, SHIFT+F9 Debugging is open QuickWatch, content is the current cursor location of 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 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 Members 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 selected annotation content
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 of the calling procedure or variable
window shortcut keys
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

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.

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.