Create keymap to show diff in editor

How can I create a keymap triggers the “show diff” menu item when the editor has the focus? I searched keymap and found CTRL+D already assigned, but that duplicates the current line when the editor has the focus. I would like to press CTRL+D (or some other combination) to trigger the “show diff” menu item currently in the Git menu shown below.

0
3 comments

flipdoubt It's a known issue that name of “Show diff” is redundant in Keymap setting, please refer to this thread and use “compare with the same repository version" to assign your custom shortcut. 

1

Sigh… I knew I should've gone to the forum right away. That's at least an hour of my life I will never get back 🤦🏻‍♂️

Thanks for sharing, I thought I'd gone mad.

0

Tao Sun , thanks, that achieves the same goal!

0

Please sign in to leave a comment.