I'm using latest version of VS code (1.9.0).
After I undo (ctrl+z) something, and save the file (ctrl+s), then I cannot redo anymore (ctrl+y).
I would like to go back and forth during the editor is running same as Sublime or other editor. Can anyone solve this problem? Thank you.
Click the (...) button and then select Undo Last Commit to undo the previous commit. The changes are added to the Staged Changes section.
Visual Studio Code allows us to check the history of navigated files in Navigation History lists. You can open this window from “Goto–> Navigation History” or by just simply pressing Ctrl + Tab. This will bring list of all previously navigated files with in Visual Studio Code.
Ken Cross. VSHistory maintains the history of files in your Visual Studio projects every time they are saved. Any saved version can be viewed or a diff with the current version can be displayed. NOTE: The version of VSHistory compatible with Visual Studio 2022 can be found here.
In Visual Studio, LLBLGen Pro uses the global undo / redo shortcuts for undo/redo: Ctrl-Z for undo and Ctrl-Y for redo. The undo-redo for the text editor switches to Ctrl-Shift-Z for undo and Ctrl-Shift-Y for redo in this case.
For people getting to this question that want to disable the persistence of the undo stack after a file is closed, this too appears to be coming to v1.45.
See https://github.com/microsoft/vscode/issues/94778 and https://github.com/microsoft/vscode/pull/96317 and v1.45 Release Notes:
"files.restoreUndoStack": false
Set to false
to disable undo stack items after a file is closed. the default is true
.
Hope this will work.
shift + command + z
It will redo what you expected in Sublime Text (command + y )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With