Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Line WalkNew to Visual Studio Code? Get it now.
Line Walk

Line Walk

Skrety

| (0) | Free
Walk a line's git history: see every commit that touched the selected lines and step through them.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Line Walk

Walk a line's git history. Select lines, see every commit that ever touched them, step through the changes — one git log -L call, then instant navigation. No hashes, no webviews.

Use

  1. Put the cursor on a line (or select a range) → right-click → Walk Line History (also in the Command Palette).
  2. Pick a commit from the list (subject · relative date · author) → a diff opens showing what that commit did to the file, scrolled to the walked lines.
  3. Navigate:
    • Alt+[ — older commit, Alt+] — newer commit
    • ← / → buttons on the diff editor tab
    • click the Line Walk 3/17 status-bar counter to reopen the commit list and jump anywhere
  4. Go deeper: right-click a line inside a walk diff → Walk Line History starts a new walk anchored at that revision.

Notes / limits

  • Line numbers are matched against HEAD (that's how git log -L works) — you get a warning when the file has unsaved or uncommitted changes that could shift them.
  • Renames are followed: the walk continues across git mv, and each diff shows the file under the path it had at that revision. The commit list marks entries with a different path.
  • Requires git on your PATH.

Why not GitLens?

VS Code already ships a commit graph (Source Control Graph), per-file history (Timeline view), and line blame (git.blame.editorDecoration.enabled). The one thing missing is walking a specific line back through time. That's all this extension does.

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