Allow to bind diffEditor.revert to keyboard#225881
Merged
hediet merged 2 commits intomicrosoft:mainfrom Sep 11, 2025
Merged
Conversation
43b3fbd to
a910f63
Compare
Contributor
Author
|
@microsoft-github-policy-service agree |
fe5a38f to
3b61d8d
Compare
a079ffe to
3e1c3e1
Compare
There is no way to revert a hunk in diff editor via keyboard. `diffEditor.revert` can be used only via clicking on the gutter icon. This commit extends this function, so it uses current position or selection to detect which hunks have to be reverted. Closes microsoft#225879
3e1c3e1 to
628c0b1
Compare
hediet
approved these changes
Jun 3, 2025
Tyriar
approved these changes
Jun 3, 2025
|
I would love to see this get merged! It is really annoying having to go back to my mouse when jumping between changes in a diff. Is there anything remaining that is preventing this from getting merged? |
hediet
approved these changes
Sep 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There is no way to revert a hunk in diff editor via keyboard.
diffEditor.revertcan be used only via clicking on the gutter icon.This commit extends this function, so it uses current position or selection to detect which hunks have to be reverted.
Closes #225879