Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard shortcuts for switching focus between left & right sides of diff view #95068

Closed
siddharth-krishna opened this issue Apr 12, 2020 · 6 comments
Assignees
Labels
author-verification-requested Issues potentially verifiable by issue author diff-editor Diff editor mode issues feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders keybindings VS Code keybinding issues verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@siddharth-krishna
Copy link

It would be great if there was a keyboard shortcut to switch between the left and right sides of a diff view (what opens when you show changes to a file from the source control tab, or when you use the "Compare active file with..." command). I often find myself comparing two files, especially when refactoring, and copying content from the left file to the right one, and without keyboard shortcuts this is tedious as I have to use the mouse every time to switch focus. (If there's an existing command for this I can bind a keyboard shortcut to, that'd be great too!)

Thanks for all the amazing work!

VS Code version 1.44.0 on Windows 10

@joaomoreno
Copy link
Member

@bpasero A workbench command?

@bpasero bpasero added diff-editor Diff editor mode issues feature-request Request for new features or functionality keybindings VS Code keybinding issues labels Apr 14, 2020
@bpasero bpasero added this to the Backlog Candidates milestone Apr 14, 2020
@bpasero bpasero removed their assignment Apr 14, 2020
@bpasero bpasero self-assigned this Nov 9, 2020
@bpasero bpasero modified the milestones: Backlog, November 2020 Nov 9, 2020
@bpasero bpasero closed this as completed in 7bfd7fb Nov 9, 2020
@bpasero
Copy link
Member

bpasero commented Nov 9, 2020

Added new commands: workbench.action.compareEditor.focusPrimarySide, workbench.action.compareEditor.focusSecondarySide and workbench.action.compareEditor.focusOtherSide.

@bpasero bpasero added the author-verification-requested Issues potentially verifiable by issue author label Nov 10, 2020
@github-actions
Copy link

This bug has been fixed in to the latest release of VS Code Insiders!

@siddharth-krishna, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text /verified to let us know. If not, please ensure you're on version 65f805d of Insiders (today's or later - you can use Help: About in the command pallete to check), and leave a comment letting us know what isn't working as expected.

Happy Coding!

@bpasero bpasero added the verification-needed Verification of issue is requested label Nov 27, 2020
@bpasero
Copy link
Member

bpasero commented Nov 27, 2020

Verification: verify the new commands in #95068 (comment) work as advertised when a diff editor is open.

@jrieken jrieken added the verified Verification succeeded label Dec 2, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
author-verification-requested Issues potentially verifiable by issue author diff-editor Diff editor mode issues feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders keybindings VS Code keybinding issues verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants
@joaomoreno @bpasero @jrieken @siddharth-krishna and others