Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Visual Studio Keyboard Shortcut that include Mouse Click

Is it possible to create a short cut in Visual Studio that includes a left mouse click?

Currently, Ctrl + Left Click short cuts to Go to Declaration.
I'd like to map Ctrl + Shift + Left Click to Go to Implementation.

I know I can create a keyboard only shortcut, but I'd like to include the mouse.

enter image description here

like image 808
Philip Pittle Avatar asked Jan 20 '17 21:01

Philip Pittle


People also ask

How do I customize keyboard shortcuts in Visual Studio?

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 add custom keyboard shortcuts to VS Code?

Advanced customization# To configure keyboard shortcuts through the JSON file, open Keyboard Shortcuts editor and select the Open Keyboard Shortcuts (JSON) button on the right of the editor title bar. This will open your keybindings.json file where you can overwrite the Default Keyboard Shortcuts.

What is Ctrl Shift F in Visual Studio?

Ctrl-Shift-F is used to find all the ocuurance of a string with in entire solution and display find result window as shown below. Ctrl-F is used to find a string in the current document, project and all open documents one by one.


1 Answers

From what I know this is not supported by default in Visual Studio.

You can have Ctrl + Alt + Left Click to go to implementation with ReSharper.

Using ReSharper you have an option for this in ReSharper options: enter image description here

ReSharper is a paid extension that brings a lot of great features to Visual Studio. I'm not affiliated in any way with ReShaper. I'm just a fan of the extension.

like image 160
dexter Avatar answered Sep 23 '22 00:09

dexter