I'm a big fan of keyboard shortcuts. When I first started working with AutoCAD, I learned to rely less on toolbars and buttons and more on entering short aliases in the command line to get things done. The result was that I spent less time going back and forth from the keyboard to the mouse. Later, when I started using Photoshop, I was amazed at how much time you could save using keyboard shortcuts like CTRL+T (free-transform layer) and CTRL+J (new layer via copy).
The most important keyboard shortcut I ever learned, however, was CTRL+S. It only took one time losing hours of work in a CAD drawing to start using it religiously.
Now I look for shortcuts for any program I spend a lot of time working in. And since I've been spending more time with Visual Studio than with my friends and family the last 5-1/2 weeks, I've gotten pretty friendly with these little time-savers. Here are some of my favorite...
Shortcut | Operation | Notes |
CTRL+K, C | Comment a line of code | You can place cursor in line without selecting anything |
CTRL+K, U | Uncomment a line of code | Same as above |
CTRL+SHIFT+ENTER | Blank line after cursor line | Cursor can be anywhere in the line, and you don't have to use END, ENTER |
CTRL+. (period) | Open Smart Tag | When you get the red squiggle, sometimes it's hard to get to this with the mouse |
CTRL+ALT+L | Open Solution Explorer | |
CTRL+; (semicolon) | Focus on Search Solution Eplorer | Same as above, except puts your cursor in the search box |
CRTL+, (comma) | Focus on Navigate To | This searches for words in entire solution and takes you to it when you hit ENTER |
CTRL+F | Open Quick Find | |
CTRL+H | Open Quick Replace | |
CTRL+Q | Open Quick Launch | Allows you to search everything in VS, including tools & options |
CTRL+ALT+S | Open Server Explorer | |
CTRL+W, E | Open Error List | |
F1 | Navigate to Help File | Place cursor in any keyword in text editor, opens MSDN help file for item |
F12 | Navigate to Definition | Place cursor in code to find definition |
CTRL+SHIFT+B | Build Solution | |
F5 | Start Debugging | |
CTRL+F5 | Start w/o Debugging | |
CTRL+F6 | Next Tab | |
CTRL+SHIFT+F6 | Previous Tab |
Oh, I almost forgot CTRL+K, D... Automatically formats tabs and white-space to make your code look snazzy!
No comments:
Post a Comment