Shortcuts i use in Visual Studio 2010
- Hold Alt while selecting = column select mode (don’t need to continue holding).
- ctrl+K, ctrl+C = comment out a section
- ctrl+K, ctrl+U = uncomment a section
- ctrl+M, ctrl+O = collapses all regions (functions, etc.)
- ctrl+M, ctrl+L = shows all regions (functions, etc.)
- ctrl+. (dot) = Show smart menu (whenever you see that weird blue underline, it brings up a menu of options related)
- ctrl+N = New file dialog
- Shift+Alt+Enter = Full screen mode (I only use this when I’m trying to show code to people on a projector or something)
- ctrl+tab = goes between child windows and brings up the nice “active files” window so you can pick the file you want (at least in 2010 anyway).
- F5 = debug (also in break mode causes the execution to continue, but if you don’t know that, that’s rather worrisome)
- Ctrl+F5 = compiles and runs the app (no debug)
- Shift+F5 = kills debugging session
- F4 = displays the properties window
- ctrl+K,ctrl+D = formats the code in the window
- Shift+del = deletes a row
- F12 = Go to definition
Advertisement