Back to browse
GitHub Repository
1 starsC#

Claude Code for Visual Studio (native diff with accept/reject)

by firish·Jun 15, 2026·19 points·7 comments

AI Analysis

●●SolidSolve My ProblemNiche Gem

Native Visual Studio diff viewer for Claude Code when only VS Code and JetBrains are official.

Strengths
  • Implements the actual IDE integration protocol—CLI connects automatically with zero config.
  • Shares compiler errors and current selection context so Claude sees what you're working on.
  • Reject-with-feedback loop lets Claude reconsider edits based on your inline notes.
Weaknesses
  • Visual Studio 2026 only—excludes the large installed base on VS 2022.
  • Requires Claude Code CLI installed separately—extension does no agent work itself.
Target Audience

.NET developers using Visual Studio 2026 who want Claude Code integration

Similar To

GitHub Copilot · Cursor · Continue

Post Description

VS Code and JetBrains have official Claude Code IDE integration, but Visual Studio doesn't. There's an open GitHub issue with a lot of +1s so I built it myself (check out the gif in the GitHub repo for a visual example).

It implements the same protocol the official plugins use, so the Claude CLI connects to it automatically. You don't configure anything, just install the extension and click Launch.

The main thing it adds over running Claude in a terminal is that edits open in Visual Studio's native diff viewer instead of auto-applying or prompting you in the terminal. You click Accept or Reject right there. You can also reject with a reason, and Claude will take another pass.

It also shares your compiler errors (C# and C++) and your current selection with the CLI automatically, so Claude has context without you having to copy-paste anything.

A few other things: - There's a dockable panel with connection status and token/cost stats for the session - A "run wild" toggle to auto-accept edits without opening the diff Works with the existing claude CLI, no model calls of its own

Marketplace: https://marketplace.visualstudio.com/items?itemName=firish.b...

GitHub: https://github.com/firish/claude_code_vs

Similar Projects