Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Undo TimelineNew to Visual Studio Code? Get it now.
Undo Timeline

Undo Timeline

Toolsmith Labs

| (0) | Free
Persistent per-file edit history with a branching timeline, diff and restore. Survives restarts, stays on your machine.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Undo Timeline

Per-file edit history that survives restarts, with a branching undo tree, diff and restore. Everything stays on your machine.

What It Does

  • Records snapshots of the text files you edit, on save and after a short pause in typing. History is written to disk, so it is still there after you close VS Code.
  • Keeps a tree, not a line. If you restore an older snapshot and keep editing, the newer states stay available as another branch instead of being lost.
  • Shows the history of the active file in an "Undo Timeline" view in the Explorer: snapshots grouped by day, relative times, lines added and removed, size change and branch markers.
  • Lets you open a diff of any snapshot against the current file, restore it, copy its content, or give it a label.
  • Restoring is a normal editor edit. Press Ctrl+Z to undo it. Undo Timeline never writes to a file behind the editor's back.
  • Also lists snapshots in the built-in Timeline view when your VS Code version offers the Timeline API to extensions.

When you start editing a UTF-8 file, the version on disk is recorded first if it differs from the newest snapshot (with any leading BOM stripped), so you can get back to what the file looked like before you touched it, even if another tool changed it since the last session. Non-UTF-8 files get no pre-edit baseline.

Features (Free vs Pro)

Feature Free Pro
Snapshots on save and after idle, saved across restarts Included Included
Branching history, diff, restore, copy, labels Included Included
Explorer view and built-in Timeline view Included Included
Retention 7 days and 200 snapshots per file, plus up to 50 labelled snapshots Configurable days and count, plus up to 50 labelled snapshots, or unlimited with a total storage cap
Full-text search across all history in the workspace Upgrade prompt Included
Export a file's history as plain files plus index.json Upgrade prompt Included

Commands

  • undoTimeline.snapshotNow (Undo Timeline: Take Snapshot Now): Records the active file immediately.
  • undoTimeline.diff (Undo Timeline: Diff With Current): Opens a read-only snapshot next to the current file. Click a snapshot in the view or use its inline button.
  • undoTimeline.restore (Undo Timeline: Restore Snapshot): Replaces the editor content with the snapshot. Undo with Ctrl+Z.
  • undoTimeline.copy (Undo Timeline: Copy Snapshot Content): Copies the snapshot text to the clipboard.
  • undoTimeline.label (Undo Timeline: Label Snapshot): Names a snapshot. An empty label clears it.
  • undoTimeline.search (Undo Timeline: Search History (Pro)): Finds text anywhere in the recorded history and opens the match as a diff.
  • undoTimeline.export (Undo Timeline: Export File History (Pro)): Writes every snapshot of the active file to a folder.
  • undoTimeline.showStorage (Undo Timeline: Show Storage Folder): Opens the folder that holds the history.
  • undoTimeline.clearHistory (Undo Timeline: Clear History for This Workspace): Deletes all recorded history after confirmation.
  • undo-timeline.enterLicense (Undo Timeline: Enter License Key): Activates a Pro license key in VS Code SecretStorage.

Settings

  • undoTimeline.idleSeconds (number, default 20): Seconds without typing before an unsaved edit is recorded. Saving always records at once.
  • undoTimeline.maxFileSizeKb (number, default 1024): Files larger than this are not recorded.
  • undoTimeline.exclude (string[]): Globs relative to the workspace folder that are never recorded. Defaults cover node_modules, .git, dist, out, common lockfiles, and common secret files (.env, .env.*, *.env, .aws/**, credentials.json, *.tfvars, *.tfstate, service-account*.json, *.pem, *.key, *.p12, *.pfx, *.kdbx, .htpasswd, id_rsa*, id_ed25519*, .npmrc, .pypirc, *.keystore, secrets.*). A pattern without a slash matches at any depth. Setting a custom list replaces the defaults.
  • undoTimeline.recordUntitled (boolean, default false): Also record untitled documents.
  • undoTimeline.retention.days (number, default 7, Pro): Days to keep snapshots. 0 means no age limit.
  • undoTimeline.retention.maxSnapshotsPerFile (number, default 200, Pro): Snapshots kept per file. 0 means no count limit.
  • undoTimeline.retention.maxTotalMB (number, default 1024, Pro): Disk cap for all history in the workspace. The oldest snapshots go first.
  • undo-timeline.apiBaseUrl (string, default ""): Override the licensing API base URL (must use https://, machine-scoped).
  • undo-timeline.webBaseUrl (string, default ""): Override the web storefront base URL (must use https://, machine-scoped).

Only text files inside your workspace folders are recorded. Files outside the workspace, binary files, files over the size limit and anything matching undoTimeline.exclude are skipped.

Good To Know

  • Free users always get 7 days and 200 unlabelled snapshots per file, plus up to 50 labelled snapshots per file, whatever the retention settings say, and all history in a workspace is capped at 256 MB.
  • If a Pro license lapses, Undo Timeline shows a warning notice at first sight naming the scheduled deletion date with Export History and Renew actions. It keeps applying your Pro retention settings until both 30 days have passed since Pro was last confirmed and at least 7 days have passed since that notice was shown (and never trims beyond free limits in the same session the lapse is first seen). If a previously confirmed license becomes missing or unreadable, cleanup is skipped for up to 30 days of continuous absence before entering the same notice-then-grace flow.
  • The newest snapshot of each file is always kept, so a file you have not touched for a long time still has one. Once a deleted file has had no new snapshot for longer than the retention period, its whole history is removed.
  • Retention is 200 unlabelled snapshots plus up to 50 labelled snapshots per file (exempt from age and count limits), though the total workspace storage cap can still remove labelled snapshots last if needed.
  • The built-in Timeline entries appear only on VS Code versions that give extensions the Timeline API. The Explorer view works everywhere.
  • In untrusted workspaces the workspace-level values of the settings above that control disk use are ignored.

Known Limits

  • History is kept per file path: renaming or moving a file starts a new history. History of a deleted file stays until its newest snapshot passes the retention age limit and is reachable again by recreating the file at the same path.
  • History is tied to the workspace folder in VS Code's workspace storage: moving or renaming the workspace folder starts fresh.
  • Untitled documents are keyed by their Untitled-N name, which VS Code reuses between sessions.

Where History Is Stored

History lives in VS Code's per-workspace storage for this extension, in a history folder:

  • Windows: %APPDATA%\Code\User\workspaceStorage\<workspace id>\toolsmith-labs.undo-timeline\history
  • macOS: ~/Library/Application Support/Code/User/workspaceStorage/<workspace id>/toolsmith-labs.undo-timeline/history
  • Linux: ~/.config/Code/User/workspaceStorage/<workspace id>/toolsmith-labs.undo-timeline/history

Run Undo Timeline: Show Storage Folder to open it. To clear it, run Undo Timeline: Clear History for This Workspace, or delete the history folder while VS Code is closed. Nothing is recorded in a window with no folder open.

File contents are stored as compressed blobs named by their SHA-256 hash, with one small JSON index per file. Identical content is stored once. Files are written to a temporary name and renamed into place, so a crash cannot leave a half-written index.

Privacy and Data Handling

Data Where Retention
File snapshots and indexes Local VS Code workspace storage only Until retention cleanup or Clear History
License key, product ID, machine ID hash Sent to the licensing API (undo-timeline.apiBaseUrl) only when you activate or refresh a Pro license Active license lifetime
Telemetry None. Undo Timeline sends no usage data and has no telemetry setting Not applicable

Your history never leaves your machine. No file contents, file paths or editor activity are sent anywhere. Common secret files (.env, .env.*, *.env, .aws/**, credentials.json, *.tfvars, *.tfstate, service-account*.json, *.pem, *.key, *.p12, *.pfx, *.kdbx, .htpasswd, id_rsa*, id_ed25519*, .npmrc, .pypirc, *.keystore, secrets.*) are excluded by default. If you define a custom undoTimeline.exclude list, it replaces the default exclude list.

Offline Behaviour

Recording, the views, diff, restore, search and export all work with no network. The only network use is the licensing API, and only when you activate or refresh a Pro license. Paid licenses are verified offline using the bundled Ed25519 public key with a 14-day grace period.

Pricing

Undo Timeline is free to use. Pro adds configurable retention, full-text search across history and export.

  • Pro: $4/month or $36/year
  • All Access (every Toolsmith Labs extension): $12/month or $99/year

View plans and buy. After purchase, sign in to your account to copy your license key, then run Undo Timeline: Enter License Key.

Support

Report issues or request help at github.com/toolsmith-labs/support. For billing or license questions, email jashambaliya05@gmail.com.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft