Skip to content

Remove/change default keybindings for "Undo Chat Edits" and "Undo this Change" #248041

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

Open
ascott18 opened this issue May 2, 2025 · 2 comments
Assignees
Milestone

Comments

@ascott18
Copy link

ascott18 commented May 2, 2025

Please consider reverting/removing the "CTRL+Backspace" default keybindings from Copilot chat/edits. I know I can just remove them myself, but I'm also sure I'm not the only one being bitten by this.

For at least the last decade, if not two, it has been ingrained in muscle memory that in almost every application I use, CTRL+Backspace means "delete previous word". But when doing copilot edits, suddenly this means "revert everything, with no way to get back into the edit/diff context". If I want to make minor edits to what copilot produced, its very easy to accidentally discard all the results by hitting CTRL+Backspace. I would never think of backspace as a "cancel" kind of a key - if any key should be triggering a cancel, it should be ESC.

Image

@ascott18
Copy link
Author

ascott18 commented May 6, 2025

There are additional chat keybindings that conflict with default editor keybinds - CTRL+Enter is normally "Insert Line below", but this gets overridden to an action that opens copilot suggestions in a new tab. Maybe needs a more comprehensive review of all these new copilot keybindings that conflict with regular editor actions.

@jrieken
Copy link
Member

jrieken commented May 13, 2025

if any key should be triggering a cancel, it should be ESC.

Open for suggestion but I think ESC is even more prominent, e.g to dismiss suggestions, find, multi-cursor etc. It's very easy to "double press" and then loose it.

An alternative idea would be to make it undo/keep AI changes undoable, e.g pressing cmd+z could get you back into the state you accidentally left

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants