VS2008最常用快捷键

When editing
Alt + F7                在打开的所有窗口中选择:不松开Alt,按左右键导航    
ctrl + ]                  go to ({['s match

ctrl + -                  go previous view             
ctrl + shift + -        go next view

ctrl + Tab               next file
ctrl + shift + Tab    previous file
ctrl + F4                close current tab

 

F12           Go to definition
Ctrl+W, D Open definition window   读代码的时候非常好用


F7              go to code
shift+F7     go to designer

Ctrl+Shift+L    Delete line
Ctrl+Shift+V    Cycle Clipboard Paste(Can find previous content on clipboard)
Ctrl+Shift+U    To Lower case
Ctrl+U             To Upper case

Ctrl+E,D    Format all code
Ctrl+E,F     Format selected code

Ctrl+E,C    Comment out selected code
Ctrl+E,U    Undo comment out selected code

Ctrl + Down/Up   Scroll one line, keep cursor still

Alt+Shift+Enter Toggle full Screen

Bookmark
Ctrl+B,T    Toggle
Ctrl+B,N    Next
Ctrl+B,P    Previous
Ctrl+B,C    Clear all


When debugging(many other useful windows in menu Debug/Windows)
Ctrl+D,B   Break point window
Ctrl+D,I   Immediate window
Ctrl+D,L   Local varibles
Ctrl+D,C   Call stack
Ctrl+D,W   Watch window
Ctrl+F10  Run to cursor
右键按钮,W     Add to Watch

When cursor on sth
Ctrl+K,I    quick Info
Ctrl+K,P   Parameter
Ctrl+K,L   member List

Windows

ctrl+W, C        Class view
ctrl+W, D        Definition window
ctrl+W, S        Solution explorer
ctrl+W, P        Properties
ctrl+W, T        Taks list
ctrl+W, E        Error list
ctrl+W, O        Output

Outlining

ctrl+M, O    collapse to definition
ctrl+M, P    stop outlining

 

Refactoring

Command Name

Shortcut Keys

Description

EncapsulateField

CTRL + R, E

Displays the Encapsulate Field Dialog Box, which allows for creation of a property from an existing field and updates all references to use the new property.

ExtractInterface

CTRL + R, I

Displays the Extract Interface Dialog Box, which allows for creation of a new interface with members derived from an existing class, struct, or interface.

ExtractMethod

CTRL + R, M

Displays the Extract Method Dialog Box, which allows for creation of a new method from the selected code.

Rename

CTRL + R, R

Displays the Rename Dialog Box, which allows for renaming all references for an identifier.

 

posted on 2012-04-13 09:09  shinecao  阅读(163)  评论(0编辑  收藏  举报