Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Chronos HistoryNew to Visual Studio Code? Get it now.
Chronos History

Chronos History

Ilídio Martins

|
10 installs
| (0) | Free
Comprehensive Chronos and Git History tracking for VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Chronos History

Comprehensive history management for VS Code.

Chronos History provides a robust safety net by automatically tracking local snapshots of your work, independent of Git. Effortlessly restore previous versions or use specialized Git views to trace history for specific code selections.

📖 Features & Usage

Access all features via the context menu (right-click) in your editor or explorer:

Chronos History
 ├─ Show History              (File-specific timeline)
 ├─ Show History for Selection (History for selected lines)
 ├───────────────────────────
 ├─ Git History for Selection  (Git commits for selected lines)
 ├───────────────────────────
 ├─ Show Project History      (Global timeline of all changes)
 ├─ Show History Graph        (Interactive visualization)
 ├─ Show Recent Changes       (Quick view of latest modifications)
 ├─ Toggle Code Heatmap       (Line-level activity visualization)
 ├─ Put Label                 (Create a named checkpoint)
 ├─ Generate Commit Message   (AI draft based on local history)
 ├───────────────────────────
 ├─ Export History            (Backup to ZIP)
 ├─ Import History            (Restore from ZIP)

🚀 Advanced Comparison: The "Select for Compare" Workflow

Chronos now features an intuitive, two-step comparison model similar to professional IDE tools.

How the ↔ Button Works:

  1. Step 1 (Select Source): Hover over any snapshot or commit and click the ↔ button. The item will be highlighted as the Source, and a blue banner will appear at the top.
  2. Step 2 (Select Target): Click the ↔ button on any other item.
  3. Result: Chronos immediately generates a Range Diff showing the cumulative changes between those two points in time.
  • To exit comparison mode, simply click Cancel in the top banner.

🛠 Detailed Menu Reference

1. Show History (with Session Replay)

The File-specific "Time Machine". This opens a timeline of every automatic snapshot taken for the currently active file. Use this when you want to see how a specific file has evolved over the last few hours or days, compare versions side-by-side, or restore the file to a previous state.

  • 🎬 Session Replay ("Code Cinema"): Use the built-in player controls (◀, ▶, ⏸) to watch your code evolve over time.

2. Show History for Selection (Chronos History)

A local "Time Machine" for your uncommitted work. This is unique to the Chronos extension. It tracks changes locally on your machine, completely independent of Git.

  • How it works: It filters your local Chronos snapshots to find only those where the selected lines were modified.
  • Side-by-Side View: By default, clicking a snapshot opens VS Code's native side-by-side diff editor, scoped specifically to the selected lines.

3. Git History for Selection

The direct equivalent to JetBrains' "Show History for Selection". This feature integrates deeply with Git to track the evolution of specific lines of code.

  • How it works: It runs a git log -L command on the selected lines.
  • Diff View: Select any commit to see exactly how those lines changed in that specific version (vs. its parent).
  • 📝 Compare with Current: A dedicated button to compare a specific commit's version of the lines with your current work-in-progress.

4. Show Project History (with Deep Search)

The Global Activity Feed. This provides a bird's-eye view of changes across your entire workspace. It lists snapshots from all files, sorted chronologically.

  • 🔍 Deep Content Search: Search through the actual content of historical snapshots. Toggle "Deep Search" to find functions or code blocks you deleted days ago, even if you don't remember the filename.

5. Show History Graph

Interactive Visualization. A graphical view of your history that helps visualize parallel changes and experiments.

  • 🚀 How to Use Show History Graph:
    1. Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P).
    2. Run "Chronos: Show History Graph".
    3. A new editor tab will open displaying the graph.
      • Zoom/Pan: Use mouse wheel and drag to navigate.
      • Inspect: Hover over nodes for details (Timestamp, Event Type, Label).
      • Compare: Double-click a node to see what changed in that snapshot.

6. Show Recent Changes

The "What just happened?" view. A streamlined, high-priority view of the most recent modifications—helping you remember the last few files you touched before a break.

7. Toggle Code Heatmap

🌡️ Visualize Churn. Instantly see which parts of your file are the most active. Chronos color-codes your lines based on their age:

  • 🔴 Hot: Changed in the last 24 hours.
  • 🟠 Warm: Changed in the last 7 days.
  • 🟡 Lukewarm: Changed in the last 30 days.

8. Put Label (with Smart Pinning)

Manual Checkpoints. Chronos takes snapshots automatically, but sometimes you want to mark a specific moment (e.g., "Right before the big API refactor").

  • 📌 Snapshot Pinning: Important snapshots can be Pinned. Pinned snapshots are never removed by the automatic pruning logic (maxDays).

9. Restore Project to...

Global Time Travel. Restore your entire workspace to a specific point in time. This acts as a "Soft Undo" for the whole project.

  • How to Use: Run "Chronos: Restore Project to..." from the Command Palette, and select a timestamp from the list. All files will be reverted to their state at that moment.

🌟 New Features

⏳ Project-Wide Time Travel

Mistakes happen. With Global Restore, you can roll back your entire project to a previous state, ensuring you can always recover from a bad refactor or accidental mass-deletion.

📝 Automatic Changelog Generator

Save hours of manual documentation. Chronos can analyze your project history between any two points in time and generate a clean, formatted CHANGELOG.md draft categorized by Features, Bug Fixes, and Refactorings.

  • How to Use: Run "Chronos: Generate Changelog (AI)..." from the Command Palette and select your desired range (Presets or Custom).

📊 Advanced Visualization (Graph View)

The new History Graph provides a bird's-eye view of how your project has evolved across multiple files. It makes it easy to spot clusters of activity and trace history through experiments.

☁️ Cloud Sync & Backup (Export/Import)

Easily move your history between machines or keep safety backups.

  • Export: Compresses your entire history into a single .zip file.
  • Import: Intelligently merges a backup file into your current history, skipping duplicates.

🤝 Collaborative Sharing

Share specific moments of your work with teammates.

  • Share: In the History View, select a snapshot and click Share. This creates a .chronos file you can send via Slack, Email, or Teams.
  • Receive: Your teammate can run "Chronos: Import Shared Snapshot..." to add your snapshot to their local history for comparison or restoration.

✨ AI-Powered Insights (Gemini)

Chronos now integrates with Google Gemini to provide intelligent analysis of your code history.

  • Daily Progress Briefing: Wake up to a summary of your work. When you start VS Code, Chronos analyzes your last session and provides a concise briefing of your achievements—perfect for stand-ups!
  • Smart Summaries: Automatically generates concise (5-word) labels for your snapshots based on code diffs.
  • "Explain This Change": A dedicated button in the History View that provides an AI explanation of the intent and logic behind any snapshot.
  • Experiment Post-Mortem: When stopping an "Experiment", Gemini generates a summary of your work or suggests a commit message.

↔️ Side-by-Side Diffs

Whether viewing local history or Git commits, Chronos uses VS Code's native side-by-side diff editor by default. This provides syntax highlighting, intellisense, and a familiar interface.

  • Toggle: Prefer the old inline view? Disable chronos.showDiffSideBySide in settings.

🧪 Local Experiments (Safe Mode)

Safely try out risky refactors without Git branches.

  • Start: Use the Command Palette (Cmd+Shift+P) -> Chronos: Start Experiment.
  • Manage: Use the Status Bar item to "Keep" or "Discard" the experiment.
  • Discard: Instantly reverts your file to the state before the experiment started.

🔍 Full-Text History Search

Search through your entire history of snapshots using the search bar at the top of any History View.

♻️ Deleted File Resurrection

Accidentally deleted a file? Find your deleted file in the "Deleted Files" list in the Chronos sidebar and click the restore icon.

↔️ Cross-File Comparison

Compare a historical version of one file with the current content of a different file. This is extremely useful during refactoring when code is moved between files.

  • How to Use: Open the target file in your editor, then find the snapshot of the source file in the History View and click Compare with Active.

⚙️ Configuration

Tune the extension in Settings (Cmd+, -> search chronos):

Setting Default Description
chronos.ai.apiKey "" Your Google Gemini API Key.
chronos.ai.model gemini-2.0-flash Gemini Model ID (e.g., gemini-3-flash-preview).
chronos.ai.smartSummaries true Auto-generate AI summaries for new snapshots.
chronos.ai.explainChanges true Enable the "Explain" button in history view.
chronos.ai.experimentPostMortem true Generate AI insights when stopping experiments.
chronos.showDiffSideBySide true Use native side-by-side diff editor.
chronos.diff.syncScroll true Synchronize scrolling in diff view.
chronos.experiments true Enable the "Experiments" functionality.
chronos.maxDays 30 Days to keep history before pruning (skips pinned snapshots).
chronos.saveInProjectFolder false Save history in .history/ inside your project.

🔍 Troubleshooting & Diagnostics

If your history appears empty or you encounter issues:

  1. Run Diagnostics: Open the Command Palette (Cmd+Shift+P) and run "Chronos: Run Diagnostics". This generates a report showing loaded indices and matching paths.
  2. View Logs: Run "Chronos: Show Chronos Logs" to see internal error messages and storage activity.
  3. Force Refresh: Saving a file will always force a new snapshot and refresh the history index for that file.

🛡️ Data & Privacy

Your code stays yours. All history is stored locally. If AI features are enabled, only the relevant code diffs are sent to Google Gemini for analysis. No data is ever persisted by the extension on any remote server.


Developer Guide & Testing | Contributing Guide

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft