the home row

the home row | All posts tagged 'vs2010'

Visual Studio 2010 – Adding zoom keyboard shortcuts

by Rob 4. February 2010 23:34

Visual Studio 2010 has now incorporated the ability to zoom in and zoom out of the editor. This feature is activated by holding down the control key and using the mouse wheel to zoom in and out. The image below shows the editor zoomed in to 345%, which is displayed in the bottom left corner.

Editor zoomed in to 345%

If you're a keyboarder  like me then you'll be wanting to know how this can be achieved without using the mouse. The default settings don't support this, but you can easily map the correct commands to keyboard shortcuts. The commands you’ll need to map are:

view.zoomin

view.zoomout

These can be set through Tools > Options > Environment > Keyboard

Options to set zoomin keyboard shortcut

Tags: ,

Visual Studio 2010: Remapping - Move between highlighted references

by Rob 24. January 2010 17:13

I've recently been following the Is This Thing On - Visual Studio 2010 tip of the day series. I highly recommend subscribing. The best tip yet was around Reference highlighting. In a nut shell every time you move over a symbol all instances are highlighted. You can see below that all references have been highlighted for MainWindow:

image

Once the symbols have been highlighted you can move to the next occurrence with Ctrl+Shift+Down Arrow and move to the previous occurrence with Ctrl+Shift+Up Arrow. For ViEmu users it will be unnatural to reach over for the arrow keys, so it's time to remap these using AutoHotkey. The idea is based on this blog post by JP Boodhoo where he maps ReSharper Go to next member to Alt+J and ReSharper Go to Previous Member to Alt+K. So here’s the update you need for your AutoHotkey script:

$^+k:: send, ^+{up}

$^+j:: send, ^+{down}

This will map Ctrl+Shift+J to Ctrl+Shift+Down Arrow and Ctrl+Shift+K to Ctrl+Shift+Up Arrow. Now you can happily move between highlighted references without leaving the home row.

Enjoy

Tags: ,

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen