question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

View undo/redo history visually or an indicator or a counter

See original GitHub issue

Dear VSCode,

Thank you very much for this project.

Although, the feature we might need is the Undo/Redo history like in the VS2019 or Photoshop, for example:

Visual Studio 2019 Photoshop
image

or at least colored/highlighted buttons(without any history list) or counters (these numbers below show the number of Undoings the coder did (or number of Redo available to restore)):

or an indicator if any Redo is available.

The reason of this request is that without it the VSCode forces you to recheck if any edits have undone after returning to the project by clicking Ctrl+Shift+Z/Ctrl+Y and Ctrl+Z repeatedly etc. to ensure and not lose the undo/redo history by an accident.

In short, the there are 3 ways to implement.

1. The Undo/Redo history window(like on 1 picture above)
2. A global or per file Redo available counter(like on 2 picture above)
3. A global or per file Redo indication (Redo exists or not)

Just, imagine a situation:

You are coding a big code.
1. Ctrl+Z in one file so to view some code you rewrote.
2. Open/View different file.
3. Forget that you Undo first one
4. Return to first one
5. Write 1 char or reformat/beatify it accidentally
6. The whole Redo history of first file is **GONE** ... oops (what if full block of such or even more?!)

So, this request might eliminate this problem.

It might be already nearly implemented: The Undo/Redo might already is stored in some object map or such, so just iterate through and do stuff. I.e. show the map in list or length of each map per file.

Interesting link which shows how might Emacs have such “feature”.

Best regards

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:57
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

38reactions
vscode-triage-botcommented, Jun 28, 2020

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

3reactions
JacksonKearlcommented, Jul 20, 2020

Bot counts +1 reactions on the original issue. Added a section to the docs and a link to it to the comment. See: https://github.com/microsoft/vscode/issues/102982

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I keep undo history after saving on Visual Studio Code
open some tabs and make them dirty · wait for a few seconds · press "Save All" · go to those tabs that...
Read more >
"Source Control / Undo" clears local Undo history (in Standard ...
Undo undos (Ctrl+Y) and make sure that the “undo” icon In Standard toolbar has this history; Right click on a file and choose...
Read more >
Undo History - SyntaxEditor Text/Parsing Framework
The undo history tracks the change types for lines in the document, meaning whether lines have been modified at all, modified since the...
Read more >
Undo History - ZBrush Docs
Show Undo Selector ... This mode, enabled by default, displays a small rectangle within the Undo History (displayed at the top of the...
Read more >
Undo - Unity - Manual
To change the order that actions are sorted in the Undo window, open the More Options (:) menu in the Undo History window...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found