distributedlife

passionate about everything

Visual Studio Tips Published by Ryan Boucher @ 2:49 pm

I use Visual Studio for the majority of my development work (I use Notepad++ for any scripting work). For some reason there is one key binding that isn’t setup in the Visual Studio general configuration. I use this key binding probably more than any other shortcut (except for save), Close the current document.

Thankfully its incredibly easy to add: Tools > Options > Environment > Keyboard. Choose the command and press the key binding for “Text Editor”. You may need to overwrite the existing binding.


Ctrl+W
- (Window.CloseDocumentWindow)

The other keyboard shortcut I use allot (but requires a plug-in like Visual Assist X) is one that allows you to flip between the source and header documents. Naturally this only applies to languages that have source and header files (like C++)

Ctrl+1(VAssistX.OpenCorrespondingFile)

Whenever I reinstall visual studio I always make sure these key bindings exist. Saves time and the shock of disbelief I get when I forget to bind the keys.

My Mug Ryan Boucher is a Software Inquisitor and is passionate about it. You can find a whole raft of articles and anecdotes about software testing and other topics he gets excited about.
Tags