Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I edit Visual Studio's mouse shortcuts?

Visual Studio used to execute the "Naviagte Backward" command whenever I hit the back thumb button on my mouse, but it has recently stopped doing that. How can I edit Visual Studio's mouse shortcut settings to re-enable this feature?

Edit: Starting a bounty, still haven't gotten a concrete answer about this.

like image 243
qJake Avatar asked May 21 '12 14:05

qJake


People also ask

How do I edit Visual Studio shortcuts?

On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard. Optional: Filter the list of commands by entering all or part of the name of the command, without spaces, in the Show commands containing box. In the list, choose the command to which you want to assign a keyboard shortcut.

How do I change mouse shortcuts in SketchUp?

Select SketchUp > Preferences. In the SketchUp Preferences dialog box that appears, select Shortcuts in the sidebar on the left. In the list box, select the command to which you want assign a keyboard shortcut. If your selection already has a keyboard shortcut assigned to it, that shortcut appears in the Key column.

How do I use shortcuts in Visual Studio?

Keyboard shortcuts in Visual Studio No matter which profile you chose, you can identify the shortcut for a command by opening the Options dialog box, expanding the Environment node, and then choosing Keyboard. You can also customize your shortcuts by assigning a different shortcut to any given command.


2 Answers

From my topic.

Plugin that attaches Navigate back/forward to the mouse buttons: Mouse Navigation The last version (2.2.0) is working fine.

Some clarifying:
Visual Studio (2012) separates the normal navigation from "click to go" navigation.
Normal navigation: mouse click anywhere in code editor, tab change also.

Click to go navigation: Go to definition, search result click. It is controlled by the buttons named: "Browse Back / Next" "Previous/Next Definition, Declaration or Reference". You can find it in the View custom toolbar.

The default VS mouse back/forward buttons are attached to the "Browse Back / Next" buttons, not to the Navigate back/forward.

The VS plugin Mouse Navigation sets the mouse buttons to the Navigate back/forward. The only remaining problem is that because VS doesn't consider "click to go" as normal navigation, when you click to go to a definition and try to go back using the Ctrl+- or mouse back, you will not return to the last position, but to the previous "Normal navigation" position.
My suggestion to the plugin developer is to try to make VS consider "click to go" navigation as normal ones, completely solving this issue.

like image 134
Pedro77 Avatar answered Nov 09 '22 23:11

Pedro77


In Visual Studio 2017 15.04 a new option was added to allow the Ctrl-Click go to definition functionality provided by the Productivity Tools. When I disabled it, my mouse back button once again started working as "navigate backward". The option is here:

Tools > Options > Text Editor > General > Enable mouse click to perform Go To Definition

Source: Visual Studio Release Notes

like image 35
GadgetNC Avatar answered Nov 10 '22 01:11

GadgetNC