TraceLight
A lightweight, context-first Git insight extension for VS Code — fast inline blame, smart hovers, block history, file evolution, and commit graph.
Features
Search
Search commits across all branches by summary, SHA, author, or touched file path, and narrow the search with author:, file: and sha: qualifiers (quote values with spaces: author:"Alice Kim"). The view loads the latest 300 commits and reads older ones on request. Show the changes a commit made, open matching files, copy commit SHAs, or jump to the commit on your remote.
Inline Trace
See who changed the current line and when — directly in the editor. Toggle with Alt+B.
Smart Hover
Hover over any line to see a rich commit card with author, message, date, diff preview, and the pull request that merged the commit into the default branch (found from merge commits in local history, so squash and rebase merges are not shown).
Block History Lens
CodeLens annotations on functions and classes showing recent change history at a glance. Click one to open the block's full history.
Block History
Every commit that changed a function, method or class, newest first, with the part of each commit's diff that touched it, following renames of the file. Open it from a Block History Lens or with TraceLight: Show Block History (command palette or editor context menu), which uses the selected lines or the block around the cursor. Uncommitted edits are taken into account when finding the block's lines.
File Evolution
Visual timeline view showing how a file evolved over time — commits, contributors, and change density.
Commit Graph
Interactive commit graph visualization with cherry-pick, revert, and branch creation from any commit.
Branch Explorer
Full branch management — create, rename, delete, checkout, and merge branches with a context menu.
Git Changes
Track working tree changes, stage/unstage files, commit with messages, stash, and generate AI commit messages via GitHub Copilot.
- Git Changes
- Search
- File Evolution
- Branch Explorer
Multiple repositories
In a workspace with more than one Git repository, TraceLight's sidebar views and commands act on the active repository: the repository of the file you last focused. The views show its name, and TraceLight: Select Repository lets you switch explicitly. Inline blame, hovers and code lens always use the repository of the file they are shown in.
Configuration
| Setting |
Default |
Description |
tracelight.inlineTrace.enabled |
true |
Enable inline blame annotations |
tracelight.inlineTrace.format |
${author}, ${timeAgo} · ${summary} |
Format string for inline annotation |
tracelight.smartHover.enabled |
true |
Enable rich hover cards |
tracelight.smartHover.showDiffPreview |
true |
Show diff preview in hover |
tracelight.blockHistoryLens.enabled |
true |
Enable Block History Lens |
tracelight.blockHistoryLens.recentCount |
3 |
Number of recent changes to show |
tracelight.fileEvolution.timelineGranularity |
week |
Timeline granularity (day/week/month) |
tracelight.commitGraph.compactMode |
false |
Use compact layout for commit graph |
tracelight.cache.enabled |
true |
Enable blame caching |
tracelight.cache.maxAge |
300 |
Cache max age in seconds |
tracelight.blame.ignoreWhitespace |
true |
Ignore whitespace-only changes when attributing lines |
tracelight.blame.detectMovedLines |
withinFile |
Follow moved or copied lines to the commit that wrote them: off, withinFile, or acrossFiles (slower) |
tracelight.blame.ignoreRevsFile |
.git-blame-ignore-revs |
Commits for blame to skip (e.g. reformatting), read from this file in the repository root when it exists |
Keybindings
| Command |
Keybinding |
| Toggle Inline Trace |
Alt+B |
Requirements
- VS Code 1.85.0 or later
- Git installed and available in PATH
License
MIT