Diff Tracker
Diff Tracker is a VS Code extension that records file changes and shows a Git-like inline diff directly in the editor.
Features
- Activity Bar view for tracked changes
- Recording mode to start and stop tracking
- Inline diff with added/removed highlights
- Side-by-side diff on demand
- Hover details for deleted/modified content
- Multi-file tracking with timestamps
- Revert per file or revert all
- Clear all tracked diffs
- Editor title buttons for inline and side-by-side diff
Usage
- Open the Diff Tracker view from the Activity Bar.
- Click Start Recording.
- Edit any file in your workspace.
- Click a file in the left list to open the inline diff.
- Use the editor title buttons to open:
- Inline Diff (single-column)
- Side-by-Side Diff
- Use Revert File or Revert All as needed.
- Click Clear Diffs to remove all tracked changes.
- Click Stop Recording when you are done.
How It Works
When recording starts, Diff Tracker:
- Captures a baseline snapshot for files
- Watches for content changes
- Builds inline and side-by-side diffs
- Updates the editor and the changes view in real time
Installation
From VSIX
- Download the .vsix file
- Open VS Code
- Open Extensions (Cmd+Shift+X)
- Click ... -> Install from VSIX...
- Select the downloaded .vsix
Development
- Clone the repository
- Run npm install
- Run npm run compile
- Press F5 to launch the Extension Development Host
Requirements
Extension Settings
This extension does not add any settings.
Known Issues
None at this time. Please open an issue if you find a bug.
Release Notes
0.1.0
- Activity Bar entry
- Recording mode for change tracking
- Inline diff highlighting
- Side-by-side diff
- Multi-file tracking with timestamps
- Revert file and revert all
- Clear diffs
0.2.0
- Change from LCS-based diff to Patience Diff algorithm for more intuitive diff display
0.3.0
- Add Partial Revert/Keep buttons, just like cursor
- Add go-to-original-file button in left panel
0.3.1
- Add file-level "Revert All" / "Keep All" buttons (CodeLens at file top)
- Add settings panel in sidebar to toggle display options
- Fix block-wise keep/revert affecting all blocks instead of just one
- Fix hover showing "unknown" for deleted empty lines
0.3.2
License
MIT
| |