Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Claude Diff ReviewNew to Visual Studio Code? Get it now.
Claude Diff Review

Claude Diff Review

niczcc

|
2 installs
| (0) | Free
Accept or reject Claude Code's edits right in the editor, with an inline diff per hunk and per-file review.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude Diff Review

Accept or reject the edits made by Claude Code, right inside your editor — with an inline diff per hunk and per-file review. When Claude Code changes your files, this extension shows the changes in place (green for added, red for removed) and lets you approve or discard them without leaving the IDE.

Features

  • Inline diff in the editor. Changed lines are shown in place — red (strikethrough) for the previous version, green for the new one.
  • Word-level highlighting. Inside a modified line, only the part that actually changed gets the strong highlight, so you see exactly what moved.
  • Accept / reject per hunk. Clickable actions appear above each changed block; resolve one piece at a time.
  • Accept / reject per file. Inline buttons on each item in the panel, plus buttons in the editor title bar for the current file.
  • Accept / reject everything. Global buttons at the top of the panel to confirm or discard changes across all files at once.
  • Automatic review. As soon as a file changes on disk (for example, after a Claude Code edit), the review opens on its own. Can be turned off.
  • Changed-files panel. A "Modified (Claude Diff)" view in the Explorer lists every changed file with a "pending" or "in review" status.
  • Smart baseline. After you accept a change, the approved state becomes the new reference. So if you accept new code and later remove it, the removal shows up for review instead of silently disappearing.

How it works

Because Claude Code writes changes straight to disk, the extension rebuilds the "before" version from git (the last commit, HEAD) and renders the diff in place. Accepting keeps the new lines; rejecting restores the previous ones. Line endings (CRLF/LF) are normalized only for the comparison, so a file with different line endings does not show up as fully changed; the original ending is preserved on save.

The inline accept/reject actions are rendered as CodeLens (clickable text above each block) rather than a floating overlay, because overlay widgets rely on editor-internal APIs that are not available to extensions.

Requirements

  • Visual Studio Code
  • git installed and on your PATH
  • The project you review must be a git repository with at least one commit

Getting started

  1. Open a project that is a git repository.
  2. Recommended: turn off Auto Save (File > Auto Save) while reviewing.
  3. Run Claude Code and ask for a code change.
  4. The review opens in the editor with the green/red diff and the Accept/Reject actions. The "Modified (Claude Diff)" panel in the Explorer lists the changed files.

You can also start a review manually: open a changed file and run Claude Diff: Review current file from the Command Palette (Ctrl+Shift+P).

Settings

  • claudeDiff.autoReview (boolean, default true) — open the review automatically when a file changes outside the editor.

Commands

  • Claude Diff: Review current file
  • Claude Diff: Accept all / Reject all (current file)
  • Confirm all / Cancel all changes (all files, from the panel)
  • Confirm / Cancel file changes (per item, from the panel)
  • Claude Diff: Reset baseline to HEAD — compare against the last commit again if the baseline gets out of sync (e.g. after a commit, checkout or pull done outside the extension).

Notes and limitations

  • Keep VS Code Auto Save off while reviewing. The review temporarily reinserts the removed lines into the buffer, so autosaving mid-review could write that intermediate state to disk. The final, resolved content is saved when the review completes.
  • The per-file baseline is stored in the workspace state and persists between sessions, so it grows over time in long-lived workspaces.

Build from source

npm install
npm run compile

License

MIT

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