- Open VS Code.
- Click on File.
- Then find Preferences -> settings.
- Click on the Text Editor in the left side menu.
- Then Click on Files.
- Locate the Restore Undo Stack Setting.
- Check or Uncheck: Restore the undo stack when a file is reopened.
How To Enable/Disable Restore Undo Stack VSCode
Related Guides