My Best Utilities Mozilla MAC OS Web Trails using Visual Studio Visual C++ using c++ my c links Visual Basic

Visual Studio Notes

Scott Cate's favorite keyboard shortcuts

My good friend Michael Palermo today showed me the best keyboard shortcut ever. In fact, this is to a feature I didn't even know existed. When in a code window for Visual Studio, you can go full screen, hiding all the other windows, toolbars, title bars, and even your start bar. This is the same effect that Internet Explorer has when it's in "Full Screen" mode.

[SHIFT ]+ [ALT] + [ENTER] = Toggle Full Screen Mode

I'm sure this works in all versions, but I haven't tested it, as I'm running the 1.1 framework. I'm told it also continues to work in Whidbey.

[CTRL] + [-] = Move cursor back to it's last position. This works great when working with large pages. I commonly will [CTRL]+[Home] to enter a Using statement, then [CTRL]+[-] brings me rights back to my previous edit point.

[CTRL] + [}] = Toggle to Open/Close { }. This is great. If you're working with nested code (who doesn't) then you'll use this constantly. Place your cursor on any { or } and press [CTRL] + [}] and your cursor will jump to the opposite end of your code block.

[CTRL] + [C] = Copy.
[CTRL] + [V] = Paste.
Of course we all know that combination, but here's the trick. Copy two items in succession. You might know that these items are placed on a "Clipboard Ring" You can access them from the UI but that entails thinking, and clicking and dragging.

[CTRL]+[SHIFT]+[V] = Paste whatever is on top of the "Clipboard Ring". If you press [CTRL]+[SHIFT]+[V] again, since your pasted code is still highlighted, it will be replaced with the second item, and again, will be the third, etc. I love this. How many times do you have to copy two or three items from one page to another (none if you're refactoring; right)?

If you have a favorite shortcut, you want me to list, e-mail me (see e-mail in header), and I'll get it up on this page.

From: Jamsheer
Message 1 in Discussion

Hi, Visual Studio .NET Shortcut Key Guide -- Keyboard shortcuts can save hours of 
programming time. Appendix C of Mastering Visual Studio .NET lists VS.NET commands, 
along with their shortcuts and descriptions, in a convenient table format   

http://safari.oreilly.com/?XmlId=0-596-00360-9/mastvsnet-APP-C   Regards, Jam

From VS help: You can display the current keyboard shortcuts, including custom key settings and editor emulations.

To display keyboard shortcuts

From the Help menu, choose Keyboard Map and perform one or more of the following actions:

Click Category, Editor, Command, Keys, or Description to sort the keyboard shortcut list alphabetically in different ways.

Click the Printer button to print a copy of the list.

Click the Copy button to copy the list to the Clipboard so you can paste it into a word processor or other text editor.

Click the drop-down menu to filter the list to view either All Commands, Bound Commands, or by menu.


back to Index | back to Links


http://dkerr.com/VisualStudio.html
© David Kerr 2005-7-15