Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS CODE - disable UNDO command after file was closed

If I'm making some files changes then close it and then reopen it, I will be able to undo those changes. How can I disable this behaviour that only changes made in the current open session can be reverted?

PS: this behaviour was not present for older versions of VS code.

like image 493
stackoverflow Avatar asked Mar 03 '23 12:03

stackoverflow


1 Answers

See v1.45 Release Notes:

Disable persistent Undo

Last milestone, changed the Undo/Redo stack to be persisted when you close a file and reopen it. Not everyone wanted this new feature, so there is now a setting, files.restoreUndoStack, to disable persistent Undo.

[Additional info: see v1.46 release notes - you can undo even in files that were closed and remain closed.]

like image 77
Mark Avatar answered Mar 05 '23 16:03

Mark