Tag Archives: Productivity

Creating handy shortcuts VS2010

There are several in-built keyboard shortcuts available in Visual Studio.

However, there are some actions that developers need shortcuts for, that are not available by default.

One of them is opening up “TFS Source Control Explorer” tool window. I typically attach Ctrl+Alt+S to this action.

Currently we have to open the Team Explorer, drill down to our team project, and then double click on the Source Control Explorer node in the Tree. This is time-consuming.

Here’s how to add Ctrl+Alt+S to “View TFS Source Control Explorer” to Visual Studio.

  1. Go to Tools -> Options -> Environment ->Keyboard
  2. On the right hand pane, filter the “Show commands containing” available commands by typing in “TFSSourceControlExplorer”
  3. Once it’s highlighted in the listbox below, click and focus on “Press Shortcut Keys” textbox
  4. Press Ctrl+Alt+S
  5. Click on the “Assign” button next to the textbox
  6. Hit OK
  7. Done

Another handy shortcut is to assign “Close command on the Currently open File”

Follow the same steps above and assign “Ctrl+W” – the reason I assign Ctrl+W is it’s already in our muscle memory to mean “Close currently open tab document” when we use it in pretty much all browsers. (FireFox, Chrome, IE)

Hope that helps.


Full Map Scroll Mode Extension for VS2010

I used “Metal Scroll” for VS2008 to get a full code map on the right hand scrollbar to quickly identify and reach a code section I have in mind.

However, there wasn’t a similar extension for VS2010, until now.

The Productivity Power Tools extension recently added “Enhanced Scroll Bar” that provides similar functionality.

To enable it,

  1. Install the “Productivity Power Tools” Extension
  2. Go to Tools -> Options -> Productivity Power Tools -> Enhanced Scroll Bar.
  3. Turn on “Full Map Mode”
  4. Now open any code file and look at the scroll bar on the right.
  5. Done