How do I edit Visual Studio's mouse shortcuts?

和自甴很熟 提交于 2019-11-27 13:52:55
Pedro77

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.

Visual Studio 2010 simply lacks support for this in C++, Visual Basic and F#

Using an Add-in is an option? here is one: Forward/Backward Code Navigation with the Mouse Thumb Buttons Inside Visual Studio 2010 (C++, Visual Basic, F#)

I think it's the simplest workaround for this problem.

Luc Bloom

I have the same problem in VS 2012. The back button does work in IE.

Even though I agree with your feelings towards mapping the mouse buttons, I'm going to try this:

"The trick is to install the IntelliPoint software that you can find at http://www.microsoft.com/hardware. From that software you can assign a mouse click when a specific program is active, and map it to a key stroke. Set VS as the program, the keystroke to Ctrl + - and Ctrl + Shift + - to the left and right mouse buttons. You will be able to use those buttons to navigate back and forth through your open files."

http://www.microsoft.com/hardware/en-us/downloads/mouse-keyboard-center

EDIT: Alas, it does not work with my Trust MaxTrack and there is no equivalent software (to my knowledge).

I did get to assign 'Cancel Build' to the 'Calculator' key.

Are you running Visual Studio as an administrator? I know this was an issue with me and my Logitech mouse running Logitech SetPoint. If you run SetPoint as an Administrator all your buttons will start working again.

Helped me and may help others, but might not be the issue with yours.

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

I don't know if you already tried this, but it might be useful to you. I didn't try it though, so I don't know if it works well.

http://mousegesturesvs.codeplex.com/

UAC is the reason...

from Windows Integrity Mechanism Design - User Interface Privilege Isolation (UIPI) and integrity

User Interface Privilege Isolation (UIPI) implements restrictions in the windows subsystem that prevents lower-privilege applications from sending window messages or installing hooks in higher-privilege processes. Higher-privilege applications are permitted to send window messages to lower-privilege processes. The restrictions are implemented in the SendMessage and related window message functions. Not all window messages that are sent from a lower-privilege process to a higher-privilege process are blocked. Generally, “read” type messages, for example WM_GETTEXT, can be sent from a lower-privilege to a higher-privilege window. However, write type messages, such as WM_SETTEXT, are blocked.

and I don't know about any solution, since elevating the driver process is not a solution.

Perform:

Tools -> Options...

Then under the Environment section on left go to Keyboard, pull up the View.NavigateBackward command, then put your cursor in the text box under Press shortcut keys:, and then press the "back thumb button" on your mouse. OK and that should do it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!