VS2005 practical shortcut keys, quickly improve code writing efficiency!
Code shortcut keys |
Ctrl+j/ctrl+k,l |
List Members |
ctrl+shift+ Space Bar/ctrl+k,p |
Parameter information |
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 Code Snippets |
Ctrl+k,s |
Inserting the outer code |
F12 |
Go to the definition of the called procedure or variable |
debugging shortcut keys
F6: Build Solution
CTRL+F6: Build Current project
F7: View Code
Shift+f7: Viewing 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: Delete all breakpoints
F10: Process-by-step
CTRL+F10: Run to Cursor
F11: Per-statement
Code shortcut keys
Ctrl+j/ctrl+k,l: List Members
ctrl+shift+ SPACEBAR/ctrl+k,p: Parameter information
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 Code Snippets
Ctrl+k,s: Inserting the outer code
F12: Go to the definition of the called 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: 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
and the best.
Code Auto Indent (selection formatting) ctrl+k+f "recommended"
Document Auto indent ctrl+k+d "recommended"
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: 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
1. F5: Start Debugging
2. F7/SHIFT-F7: Show Code window or display designer window
3.alt-enter: Displays the properties of the selected object (this is a common Windows shortcut that can be used to display directory and file properties)
4.f6/shift-f6/ctrl-shift-b: Build Solution/Build project/Build Solution
5.SHIFT-ALT-C: Adding classes to your project
6.ctrl-k + ctrl-c: Comment A selection code
7.ctrl-k + ctrl-u: Uncomment a selection code
8.ctrl-m + Ctrl-o/ctrl-m + ctrl-p: Collapse define/Expand All code (stop outlining)
9.ctrl-m + ctrl+m: Expand or collapse code snippets (toggle outline display)
10.ctrl-b + ctrl-t: Toggle code Bookmarks
11.ctrl-alt-p: Attaching a debugger to a process
12.ctrl-alt-l: Display Solution Browser
13.ctrl-shift-a/alt-shift-a: Adding Items to the project/removing items from the project
The above is the original author believes that 13 of the longest commonly used, I think 13 are still less, at least add these:
1. Forced intelligent Perception: ctrl+j;
2. Forced IntelliSense display parameter information: ctrl-shift-space;
3. Format the entire block: ctrl+k+f
4. Check bracket matching (toggle between left and right brackets): Ctrl +]
5. Select the code between the start of the cursor and the Beginning (tail): Shift + Home (end)
6. Switching between method definition and call point: ctrl+shift+7 (8)
7. Set Breakpoints: F9
8. Use tab to increase indentation, shift+tab decrease Indent
9. Format the entire code: CTRL+K, D
10. Set Bookmark: ctrl+b+t, jump bookmark: ctrl+b+n
11, Ctrl+i, and then hit the text you want to search for.
12, properties.
Class CLASS1
{
private int x; //Right here click on ' Refactor ', ' Package field '
...
13, the interface to be implemented requires a using-namespace.
public Class1 : IValueConverter Mouse Click Ivalueconverter,r below appears a small red rectangular type, click on it will prompt your social interface where the namespace ...
Ctrl + E + D formatting
Ctrl + K + C Bulk Comment
Ctrl + K + U Bulk Cancel comments
15.Alt + Shift + Enter first full screen, second exit full screen
16.ctr+shift+u ctr+u Toggles the selected string into uppercase and lowercase.
17. The cursor stops in a row, without checking, ctr+l equivalent to "cut the whole line". Ctr+g find a row.
CTRL + ENTER----Previous line
Ctrl+e,d----Formatting all of your code
Ctrl+e,f----Formatting the selected code
CTRL + SHIFT + B Build Solution
CTRL + F7 Build compilation
CTRL + O Open File
CTRL + SHIFT + o Open Project
CTRL + SHIFT + C displays the Class View window
F4 Display Properties Window
SHIFT + F4 Show Project Properties window
CTRL + SHIFT + E display Resource View
F12 go To Definition
CTRL + F12 go to Declaration
CTRL + ALT + J Object Browse
CTRL + ALT + F1 Help Table of Contents
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 +-Navigate Forward
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 comment on the selected code
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 ending
CTRL + backspace Delete to prefix
SHIFT + TAB to cancel tabs
CTRL + U Turn lowercase
CTRL + SHIFT + U-turn capitalization
CTRL + SHIFT + END selection to end of document
CTRL + SHIFT + Home selection to start at the end of the document
SHIFT + End Select to end of line
SHIFT + Home selection to start at line
SHIFT + ALT + END vertical selection to last tail
SHIFT + ALT + Home Vertical selection to the front
CTRL + a Select all
CTRL + W Select the current word
CTRL + SHIFT + PAGE Up Select to the front of this page
CTRL + SHIFT + PAGE DOWN select to the back of this page
CTRL + End document anchored to last
CTRL + Home Document navigates to the front
CTRL + G go to ...
CTRL + K, CTRL + P previous label
CTRL + K, CTRL + N Next label
ALT + F10 Debug-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 stepping through a single step
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: Viewing 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: Delete all breakpoints
F10: Process-by-step
CTRL+F10: Run to Cursor
F11: Per-statement
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: 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
Code shortcut keys
Ctrl+j/ctrl+k,l: List Members
ctrl+shift+ SPACEBAR/ctrl+k,p: Parameter information
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 Code Snippets
Ctrl+k,s: Inserting the outer code
F12: Go to the definition of the called 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: 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
Hidden shortcut keys for VS2005
Here I will share some of the shortcut keys that are not explicitly stated in the VS2005, not all shortcuts, or some of the common shortcuts.
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 ... , alternative shortcut keys are alt+right)
2, Shift+delete the whole line to delete, and put this line to the Clipboard (this time cannot select a section of content)
3, Shift+insert Paste, a little strange, Ctrl + V can be, presumably to and shift+delete corresponding bar
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 Whole Word Delete, sometimes very useful
6, ctrl+left,ctrl+right by the whole word to move the cursor (not to be hidden, and the previous several added up is the Ctrl Cursor control suite)
7, ALT+SHIFT+F10 Open perform renaming, implement interface and abstract class small window (also can use CTRL +, but some Chinese input method to use this)
8, SHIFT+F9 Debugging is to open the 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 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 turns 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 of the called 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: 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
Visual Studio 2005 Common keys