
Enhance the Tabs in Visual Studio #23
Chapter 3, Navigating Visual Studio
|
95
HACK
be executed. Figure 3-17 shows some of my favorite settings, making undo
and redo easily accessible on the Back and Forward buttons, and also put-
ting BuildSolution on the middle button. You can configure the mouse to
execute whatever commands make sense for you.
These are the same commands that you use in the Com-
mand window
[Hack #46] and when creating keyboard short-
cuts
[Hack #24]. Any command that you can use from the
command window or assign to a keyboard shortcut can be
assigned to one of your mouse buttons.
Just as when working with shortcut keys, you can set the scope of your com-
mand assignments. Using the drop-down labeled “Use this mouse shortcut
in:”, you can set the scope of your command. The available scope settings
are Global, HTML Source Editor, HTML Designer, and Source Editor.
When determining scope, the more specific settings will override the global
settings. You might have the middle button configured to be BuildSolution
at the global level, but set to be OpenFile in the source editor. This means
that the setting for the source editor will override the global settings; if you
click the middle button on your mouse in source code view, the OpenFile
command will be called.
The VSMouseBindings power toy is easy to download, easy to use, and can
definitely make it easier to move around in Visual Studio. ...