-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Feature request - undo after moving cursor should optionally just put the cursor back, without undoing #34093
Comments
@Madd0g would |
cmd+u doesn't do the trick and even if it did work, I strongly believe it should be built into the undo functionality, like it is with a lot of other editors. It shouldn't remember each cursor move, just if you did move the cursor (even a bunch of times), undo brings you back to where you last typed, without actually removing the typed text. I believe it's a huge usability boost, even for one single purpose I use this for:
I tried using cmd+u where I would usually use cmd+z and it did not work (it worked on second press though). This process is hardwired into me from many years. I believe this is a more correct behavior simply because what user would want to undo something they (potentially) cannot see? Jumping back to the edit location before actually undoing, in my eyes, is better UX just for that reason. Thanks |
@Madd0g, can you (or anyone else) please clarify the difference between |
@duncanawerbuck In my experience, soft undo resets every cursor movement, go back won't if it's just a up/down or ctrl+left/right etc. it resets in the page level, like change active file, or page up/down, give them a try, you will see. |
What's the current state of the requested feature? I also agree with @Madd0g, this feature would highly increase the UX of every developer! |
I want this feature so badly! |
The lack of this feature makes undo/redo uninformative and error prone. When 'ctrl-z' causes the page to scroll and undo at the same time, it's impossible to see what was undone without redoing and undoing it. I see myself constantly having to undo-redo-undo so that I can see what was actually changed on the first undo. This is also error prone as if you mistype one of the shortcuts, you wipe your undo/redo history and you're left wondering what you may (or may not) have changed |
It's a hard switch from IntelliJ to VS Code without this feature honestly. Devs are constantly scrolling through files. I feel more confident to undo when at first I get back to the cursor position where something can be undone, and only the second action will undo. I find myself constantly undo-ing/redo-ing with VS Code. |
+1 |
Just switched from WebStorm to VS Code, I desperately want this feature! |
There's a feature I'm missing that I've used in other IDE's, when finishing typing, moving somewhere else (for example to select+copy some variable name), then pressing CMD+Z should bring the cursor back to the last edit location without actually undoing the typing there.
I know there's some "last cursor position" keyboard shortcut, but I believe this should be a first-class functionality of the undo, like it is in other editors (I remember this from webstorm, but I'm pretty sure the muscle memory for doing this comes from way before webstorm).
What do you think?
Thanks
The text was updated successfully, but these errors were encountered: