Editor & files
Trash and checkpoints in VS Code
Get a deleted file back from the trash, or compare a file with an earlier checkpoint and restore it — in VS Code's Project Tools, for everyone in the project.
The Trash
Deleting a file or folder in a kodeo:// window (or pushing a deletion from a linked folder, or deleting in the browser) puts it in the project's trash for 7 days. In VS Code it's Project Tools → Trash in the KODEO side bar (it loads when you open it):
- each entry shows what was deleted, where, by whom, how long ago, and when it goes for good;
- Restore brings it back — for everyone in the project, where it was;
- Delete Forever removes one entry now; Empty Trash removes them all (both ask first and can't be undone).
The view updates by itself when a teammate deletes or restores something. Viewers can look but not restore.
Checkpoints
A checkpoint is a saved copy of one file's text, shared with the web editor.
- KODEO: Create Checkpoint saves the file you have open (with an optional name).
- Project Tools → Checkpoints lists the open file's checkpoints (yours, teammates' and the automatic ones). Click one to compare it with the file now — the checkpoint on the left, the file on the right — then restore it from there or with the restore button on the row. KODEO: Checkpoints… does the same from the Command Palette.
- Restoring changes the file for everyone in the room. The current text is saved as a checkpoint first, so a restore can itself be undone.
For older history, use Git: KODEO Git: File History shows every commit that changed the file, and right-clicking one lets you restore that version.
Still have a question about this?
Assist answers from this article — in any language.
Was this helpful?