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.
Please sign in to leave a comment.
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.
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.
Tao Sun , thanks, that achieves the same goal!