Navigate your file's commit timeline with syntax-highlighted diffs
Browse through the commit history of any file in your repository with beautiful, side-by-side syntax-highlighted diffs.
- Visual Timeline: Navigate through commits using an intuitive horizontal carousel
- Syntax Highlighting: Powered by Shiki for accurate, editor-quality syntax highlighting
- Side-by-Side Diffs: Compare changes between consecutive commits with a split view
- Word-Level Diffing: See exactly what changed at the word level, not just line-by-line
- Keyboard Navigation: Use arrow keys to quickly navigate between commits
- VS Code Native: Respects your VS Code theme colors and integrates seamlessly
Right-click any file in the Explorer sidebar and select "Git File Timeline".
Right-click anywhere in an open file and select "Git File Timeline".
- Open the file you want to inspect
- Press
Cmd+Shift+P(macOS) orCtrl+Shift+P(Windows/Linux) - Type "Git File Timeline" and press Enter
| Key | Action |
|---|---|
Left Arrow |
View previous commit |
Right Arrow |
View next commit |
- Visual Studio Code 1.108.0 or higher
- Git installed and available in PATH
- A Git repository with commit history
This extension does not add any VS Code settings.
- Large files with many commits may take a moment to load
- Binary files are not supported
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Shiki for syntax highlighting
- @pierre/diffs for the diff viewer component
- Inspired by git-history by Rodrigo Pombo
Enjoy exploring your git timeline!
