Git Control Keyboard Provider Hotkeys

I am using the Git Provider Source Provider extension for Visual Studio 2010, and I would like to set a hotkey for Commit, but I cannot get it to work. I would like to define a keyboard shortcut for any command by right-clicking anywhere in my solution, choosing “Git → Commit” (the one that has the cow icon and not the one provided by TortoiseGit).

I set a hotkey for GitPlugin.Connect.GitExtensionsCommit ( Ctrl + G , Ctrl + C ) that will be used globally (yes, I had to disable some other hotkey options that were used by Ctrl + G), but whenever I have it use, I get an error saying that this command is currently unavailable.

How to set hotkeys for a Git version control provider?

+1
source share
1 answer

After playing with this, I was able to get it to work.

I configured Ctrl + \, Ctrl + K to be a shortcut (but you can set your own as long as there are no conflicts).

After that, if you select any project / file node and click on the shortcut, it will invoke commit.

The catch here is that you need to select project or file in the solution explorer , which makes sense, because otherwise the provider does not know what to do.

0
source

Source: https://habr.com/ru/post/1383568/


All Articles