Friday, March 16, 2007

VS.NET 2005 Basics, Part II: Shortcut Keys

Keep your hands on the keyboard, and you will work with agility. Short list of the best/most useful VS.NET 2005 shortcut keys, plagarized from everywhere:

MAJOR WINDOWS AND TOOLBOXES
Ctrl + Alt + S
= Server Explorer
Ctrl+Alt+A = Command Window
Ctrl+Alt+O = Output Window
Ctrl+Alt+T = View Document Outline
Ctrl+Alt+I = Immediate window, evaluate expressions and execute individual commands
Ctrl + Alt + X = Toolbox
Ctrl+ Alt + K = Task List
Ctrl-K, Ctrl-B - Open Code Snippet manager
F4 = Properties Window
Shift + F4 = Property Pages
Ctrl + Shift + C = Class View
Ctrl + Shift + E = Resource View
Ctrl + Alt + C = Call Stack
Ctrl + Alt + V, L = Locals

NAVIGATING CODE
Ctrl-Minus
= Takes you backward to the last section of code you were looking at
Ctrl-Shift-Minus = Takes you forward to the next section of code in your history.
F12  = Jump  to definition. On a method, it will navigate back to its source. On an overloaded method, you'll be presented with pop-up window that cues you for which method signature you had in mind. Duplicates the (slower-to-use) context menu.
Ctrl + I = Incremental Search Down
Ctrl + Shift + I = Incremental Search Up
Ctrl + D = Go to find Combobox
Ctrl + Shft + F = Find in Files
F8 - Move to next item. Works in many windows, e.g. the task list.
Ctrl+] = Bounce cursor between balancing braces/parens

SNIPPETS
Ctrl-K, Ctrl-B - Open Code Snippet manager

OUTLINING
Ctrl-M, Ctrl-O
= collapse all outlines
Ctrl-M Ctrl-L = expand all outlines
Ctrl-M, Ctrl-M = expand a specific outline section

MAKING SENSE OF INTELLISENSE
Ctrl-Shift-Space
= Restore Intellisense parameter window. Useful if you "disappear" it via mouse or keyboard input.
Ctrl-J = List members. Restores what you normally get when you hit "." after an object instance

CLEANING UP YOUR CODE
Ctrl-A Ctrl-K Ctrl-F
  = Reformat page
Shift-Enter  = insert new blank line above current line
Ctrl-Shift-Enter = insert new blank line below current line
Ctrl-T = transpose the two characters the cursor between current cursor position
Ctrl-Shift-T = transpose words in current cursor position

WINDOWING AND VIEWS
Crtl+Tab
= switch between windows inside the current project
Alt+Space, N = Minimize current application
Alt+Space, X = Maximize current application
Alt+Space, R = Restore current application
Shift+ALT+Enter =  Full screen mode.  Good for laptop dev.
CTRL+R, CTRL+R = Toggle Word wrap.
Ctrl+ F4 = Close active code windows in project
Number pad *  = Expand all in the Solution Explorer
Number pad -  = Collapse all in the Solution Explorer
Alt+W, L = Close all windows

COMMENTS
Ctrl+K, Ctrl+C
= Comment out the current selected section
Ctrl+K, Ctrl+U = Uncomment the current selected section

BOOKMARKS
Ctrl-K Ctrl-K
= Set/unset bookmark in current position
Ctrl-K Ctrl-N = Navigate to the next bookmark

CODE VIEW/DESIGN VIEW
Shift+F7
= show designer window
F7 = show code window

Ctrl+PageDown = Toggle between source and design views in .aspx files (yessssss!)

MSDN HELP
Ctrl + Alt + F1
= View Contents Tab
Ctrl + Alt + F2 = View Index Tab
Ctrl + Alt + F3 = View Search Tab
Ctrl + Alt + F = View Favorites Tab
Shift + Alt + F3 = Search results
Shift + Alt + F2 = Index results

BUILDING AND DEBUGGING
Ctrl+Shift+B
= Build solution
F9 = Toggle Breakpoint
F5 = Start
Shift + F5 = Stop Debugging
Ctrl + F5 = Start Without Debugging
F11 = Step Into
Shift + F11 = Step Out
F10 = Step Over
CUT, COPY, 'N PASTE
Cntl+C
(with nothing selected) = copy entire line
Ctrl+Enter = copy line above

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home