Stupid Visual Studio Tricks, Part 4

Part 1: Navigate with the back/forward buttons on your mouse
Part 2: Fix annoying jumping toolbars
Part 3: Using the find window to quickly open a file

A couple quick ones:

  • Click with your middle mouse button (or scroll wheel) on a tab to close a document window.
  • Window > Close All Documents (not where I thought it should be)
  • Re-map Control-W to Close Document (like IE/Firefox)
    • Tools | Options | Keyboard
    • In ‘Show commands containing’ type SelectCurrentWord
    • Click Remove
    • In ‘Show commands containing’ type File.Close
    • In ‘Press shortcut keys’ type Control-W
    • Click ‘Assign’ and ‘OK’
  • Use Control-Backspace and Control-Delete to delete entire words. Control-Delete is especially helpful when the cursor is at the end of the line and you want to delete the line break and the leading tabs/spaces of the next line.
  • Use Control-. to bring up the smart tag for adding using statements.
    controldot
  • Use Control-I to quickly search through a document. After you’ve located a match, hit Control-I again to cycle through other matches.
  • Right-drag code to invoke context menu for with options for moving or copying (if you can’t be bothered to hold control while dragging).

Posted September 12th, 2007 6:18 PM
Read more posts about Software, Tips.

View Comments
Link

  • Thanks for tips, I really need those kinds of information now.. basics really helps a lot.
  • You can also do Ctrl-Shift-i to search your code backwards.

    If you have unused mouse buttons, I think you can bind GotoDefinition to one of them (not sure what the shortcut key is--I don't use Intellisense anymore).
    I use Visual Assist (wholetomato.com) and an Evoluent mouse (evoluent.com). I use the Evoluent Mouse Manager to configure custom settings just for VisualStudio: Button5 to act as Alt-G (VA-GotoDefinition). Button4 is Shift-LeftClick (VA context menu).
  • Hello,
    I have found your blog useful as a daily read. Is there a way in Visual Studio 2008 to stress test my web applications? I have been reading all over the Internet and also some ASP .NET books, and it seems that ACT used to come with VS .NET. However, in the recent version which is VS 2008 (professional), how do i stress test? Or, do i have to get team system edition?
blog comments powered by Disqus