Problem
A configured keyboard shortcut for the "Show Diff" action does not trigger the diff view when invoked from the editor.
Cause
The action named "Show Diff" found under Settings | Keymap | Version Control Systems | Git applies specifically to contexts like the Git tool window or the Commit tool window. It does not apply to showing the diff for the currently active file in the editor against its repository version.
Resolution
To configure a shortcut for showing the diff of the current file in the editor against its repository version:
- Go to
Settings | Keymap(Ctrl+Alt+SorCmd+,) - In the search field, type
Compare with Same Repository Version - Locate the action under the
Main Menu | Git | VCS Group | Gitpath - Right-click the action and select
Add Keyboard Shortcut - Press the desired key combination and click
OKto assign it
This specific action will allow you to invoke the diff view for the current file directly from the editor using the assigned shortcut.
Comments
0 comments
Please sign in to leave a comment.