Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Doc Snapshot — Export Code Documentation InstantlyNew to Visual Studio Code? Get it now.
Doc Snapshot — Export Code Documentation Instantly

Doc Snapshot — Export Code Documentation Instantly

miccho27

|
3 installs
| (0) | Free
Take versioned snapshots of your code files and compare changes over time. Export documentation to Markdown instantly — no Git required.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Doc Snapshot — Local File Version Control Without Git

VS Code Marketplace Installs License: MIT

Undo anything, anytime. Take named snapshots of any file, compare diffs, and restore previous versions — no Git commit required.


Why You Need This

Git is great for code, but it falls short for:

  • Config files in .gitignore that change frequently
  • Quick experiments you don't want to pollute your git history
  • Backing up before a risky refactor ("let me try something real quick")
  • Tracking .env, settings.json, or other non-tracked files

Doc Snapshot fills that gap. It's lightweight local version control that works on any file, tracked or not.


How It Works

  Open any file
       │
       ▼
  Press Ctrl+Shift+S → "Before refactor"
       │
       ▼
  Make changes... experiment... break things...
       │
       ▼
  ┌────────────────────────────────────────┐
  │  Doc Snapshot: List Snapshots          │
  │                                        │
  │  myService.ts                          │
  │  ● 2026-03-29 10:41  "Before refactor" │
  │  ● 2026-03-28 15:22  "Working state"   │
  │  ● 2026-03-27 09:15  "Initial version" │
  └────────────────────────────────────────┘
       │
       ▼
  Select snapshot → [Compare] or [Restore]
       │
       ▼
  VS Code diff viewer opens / file restored

Features

  • Take snapshots with custom labels at any time
  • Compare current file with any previous snapshot using VS Code's built-in diff viewer
  • Compare two snapshots against each other
  • Restore file content from any snapshot
  • Auto-snapshot on save — never lose a version accidentally
  • Configurable limits — set max snapshots per file to manage storage
  • Bulk cleanup — clear snapshots per file or for the entire workspace

Quick Start

Install from VS Code:

  1. Open Extensions panel (Ctrl+Shift+X)
  2. Search Doc Snapshot miccho27
  3. Click Install

Or install via command line:

ext install miccho27.m27-doc-snapshot

Use:

  1. Open any file you want to snapshot
  2. Press Ctrl+Shift+S to take a snapshot (name it something meaningful)
  3. Make your changes
  4. Run Doc Snapshot: List Snapshots to compare or restore

Settings

Setting Default Description
docSnapshot.autoSnapshot false Auto-take snapshot on file save
docSnapshot.maxSnapshotsPerFile 50 Maximum snapshots stored per file

Commands

Command Shortcut Description
Doc Snapshot: Take Snapshot Ctrl+Shift+S Save current file state with a label
Doc Snapshot: List Snapshots — Browse all snapshots for the current file
Doc Snapshot: Compare with Snapshot — Diff current file vs. a snapshot
Doc Snapshot: Compare Two Snapshots — Diff two snapshots against each other
Doc Snapshot: Restore Snapshot — Revert file to a saved snapshot
Doc Snapshot: Delete Snapshot — Remove a specific snapshot
Doc Snapshot: Clear All (File) — Remove all snapshots for the current file
Doc Snapshot: Clear All (Workspace) — Remove all snapshots in the workspace

Use Cases

  • Before risky refactors: Snapshot before making large changes, restore if it goes wrong
  • Config files: Track .env, nginx.conf, or other files outside Git
  • Experiments: Try different approaches without polluting your git history
  • Document evolution: Track how a README or spec document changed over time

License

MIT

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