10

Does anyone know how to bind extra mouse buttons to commands in visual studio 2008? There used to be a "powertoy" that let you do it for visual studio 2003, but I can't find an equivalent for 2008.

BIBD
  • 15,107
  • 25
  • 85
  • 137

4 Answers4

7

While AutoHotKey was interesting, it doesn't really do what I want to do, which is map buttons to keys in an application-specific context.

I ended up finding this add-in: http://www.codeproject.com/KB/macros/MouseNavi.aspx

which I just modified and threw into the AddIns directory for Visual Studio.

4

AutoHotkey

demoncodemonkey
  • 11,730
  • 10
  • 61
  • 103
3

For anyone still looking for a solution that will work in any version of Visual Studio (as I was), I found X-Mouse Button Control.

You can map your commands to whatever keyboard shortcut you like and then use X-Mouse Button Control to send those keystrokes only to devenv.exe.

First you'll have to add an application profile for devenv.exe. Then, to map the keystrokes, just select "Simulated Keys" in the dropdown box next to the mouse button you want. Follow the prompts to set the keystrokes, and you're all set.

Matt Sullivan
  • 37
  • 1
  • 7
  • Great. It took me a while to find "Simulated keys" entry between all those predefined actions, but after that configuring it for VS was easy. – Suma Jul 27 '12 at 07:58
  • I'm glad you found this useful. I edited my original post to include some useful instructions for setting it up. – Matt Sullivan Aug 15 '12 at 21:08
2

MSDN

Cj Anderson
  • 841
  • 3
  • 13
  • 20
  • Thanks, but that's the Visual Studio 2003 plug-in that I was talking about. It doesn't work with Visual Studio 2008. Anything else? –  Feb 23 '09 at 19:03
  • I saw that the Release Date was May 13 2008 so I assumed it had been updated. – Cj Anderson Feb 23 '09 at 22:13