Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>BranchReviewNew to Visual Studio Code? Get it now.
BranchReview

BranchReview

bbtit

|
2 installs
| (0) | Free
Codebase-aware PR review: PR branch code in the normal editor, diff as gutter metadata.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

BranchReview

日本語: README.ja.md

A conventional diff view tends to be noisy. Old and new sit side by side, and deleted lines stay on screen. Nor can you always use everything your editor offers.

BranchReview keeps the branch under review open in the normal editor and shows the diff between branches as gutter marks and hovers. You are opening the real file, so every editor feature still works. It is a VS Code extension for focusing on the new code rather than the diff.

How to use it

1. Check out the branch you want to review

git checkout feat/your-branch

2. Run BranchReview: Set Base

Open the Command Palette (Windows: Ctrl+Shift+P, macOS: Cmd+Shift+P) and run BranchReview: Set Base, then pick what to compare against.

You can also click BranchReview: off in the status bar to pick the comparison target.

That is the whole setup. The status bar switches from BranchReview: off to BranchReview: main.

Clicking BranchReview: off in the status bar, picking a base, and the status bar switching to BranchReview: main

3. Read the code

Open files the way you always do. Changed lines now carry a gutter mark:

Mark Meaning
Added lines this branch introduced
Changed lines this branch rewrote
Deleted lines this branch removed — the mark sits on the surviving line next to the gap

Hover any mark to see that hunk as a diff, including the old code that was replaced or deleted. Nothing is ever injected into your file.

A gutter mark hovered open, showing the hunk as a diff with the lines it replaced

4. Walk the changes

Alt+] goes to the next change, Alt+[ to the previous one — across files, wrapping from the last change back to the first. Jumping into a file you have not opened yet just opens it normally.

Moving from one change to the next, then on into another file

The activity bar BranchReview → Changes lists every changed file with its +n -n. Click a file to open it at its changes.

5. Keep track of what you have read

Right-click a file in the Changes view and choose Mark as Reviewed. It gets a ✓, and the progress row counts up (1 / 14 files reviewed).

Marking files as reviewed in the Changes view, with the progress row counting up

Progress is remembered per repository, base, and branch — so when new commits land on the same branch, what you already reviewed stays reviewed.

6. Finish, or come back later

BranchReview: Stop Review turns the overlay off but keeps the base, so Resume Review picks it straight back up — including after a window reload. Clear Base forgets the base and the reviewed progress.

While a review is on, the status bar reads BranchReview: <base>, with · local changes appended when your working tree is dirty — so you always know the gutter is showing the commit range and not your own uncommitted edits.

Commands

Command What it does
BranchReview: Set Base Pick the revision to compare against and start the review
BranchReview: Resume Review Restart the review with the remembered base
BranchReview: Stop Review Turn the overlay off, keep the base for later
BranchReview: Clear Base Forget the base and the reviewed progress
BranchReview: Next Change / Previous Change Move to the next / previous hunk, across files
BranchReview: Mark as Reviewed / Mark as Unreviewed Toggle a file's reviewed state from the Changes view
BranchReview: Clear All Review Progress for This Repository Drop reviewed progress for every base and branch in this repo
BranchReview: Show Git Context Show the repository root, branch, and HEAD (debugging)

Keybindings

Shortcut Command
Alt+] (macOS Option+]) Next Change
Alt+[ (macOS Option+[) Previous Change

Good to know

  • Uncommitted changes are not part of the review. The gutter always reflects base...HEAD; the status bar flags a dirty working tree instead of mixing the two.
  • Deleted files appear in the Changes view but do not open — there is no file left to show.
  • Binary files are listed without gutter decorations.
  • A detached HEAD cannot start a review; check out a branch first.
  • Switching branches mid-review stops the overlay automatically and keeps the base for Resume Review.

Requirements

  • VS Code 1.96 or newer
  • git on your PATH

Development

pnpm install
pnpm check   # oxlint + oxfmt + types
pnpm test    # vitest
pnpm build   # bundle to dist/extension.cjs

Press F5 to launch an Extension Development Host. The toolchain is Vite+ (vp); ESLint, Prettier, Jest, and webpack are intentionally not used.

  • docs/requirements.md — product requirements
  • docs/decisions.md — implementation decisions, and why
  • docs/research-vscode-apis.md — the VS Code API survey the design rests on
  • docs/manual-tests.md — manual QA steps
  • docs/next-steps.md — what is left

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft