From Wikipedia :
Keyboard shortcuts are typically an alternate means for invoking one or more commands that would otherwise be accessible only through a menu, a pointing device, different levels of a user interface, or via a command console. Keyboard shortcuts generally expedite common operations by reducing input sequences to a few keystrokes, hence the term "shortcut".
Here's my top 5 of most used keyboard shortcuts used on a Windows operating system and in Visual Studio!
- Windows key + E to launch Windows Explorer
- Windows key + L to lock my computer
- Windows key + M to minimize all running applications and to return to my desktop view
- Alt + Tab to navigate between running applications (on Vista you can also use Windows key + Tab)
- Windows key + R to open the Run Window
- Ctrl + Shift + B to Build a solution
- Ctrl + J to list members for statement completion when editing code
- F4 to display the properties window, which lists the design-time properties and events for the currently selected item
- Ctrl + . to open up the SmartTag options for the focused element. I use this all the time to import missing using statements for example or to do some kind of refactoring.
- Ctrl + K,C or Ctrl + K,U to comment/uncomment the selected line(s) of code
You can also visit the doFactory that gives you a nice overview of all available shortcuts in Visual Studio.
Recently I also discovered (by accident actually) a new shortcut that's only available on Windows Vista. You need to press the Windows key and a number (1, 2, 3, ...) : that key combination will open the Quick Launch shortcut (Quick Launch toolbar) that is in the position that corresponds to the number you've chosen.
To reset your shortcut settings for Visual Studio, you need to go to Tools > Import and Export Settings. To customize key bindings go to Tools > Options > Environment > Keyboard.
Any other important shortcuts you use all the time?
Labels: Visual Studio