Show History for Selection lists Git commits that touched your current selection, then opens a side-by-side diff of parent vs selected revision for the same file.
Features
- Commit list scoped to the selected lines (per-line union + range trace)
- Resizable Commits panel (drag the handle above the list; height is remembered)
- Full commit message in a modal (click Commit Message) or hover preview
- Scroll sync between Parent and Revision panes
Requirements
- Git on your
PATH - File saved on disk and tracked by Git
Usage
- Open a file in a Git repository.
- Select one or more lines (or place the cursor on a single line).
- Run Show History for Selection:
- Command Palette (
Ctrl+Shift+P/Cmd+Shift+P), or - Editor context menu.
- Command Palette (
- Pick a commit in the list to load the diff. Drag the horizontal bar above Commits to change the list height.
Contributing & issues
Use the repository linked on the Marketplace page.
License
MIT — see LICENSE.