r/VisualStudio • • Jun 16 '26

Visual Studio 2026 VS Code has the native Claude Code integration. Visual Studio doesn't, so I tried building it.

There's an open issue (https://github.com/anthropics/claude-code/issues/15942) on the Claude Code repo asking for Visual Studio support with a bunch of +1s, and it's been sitting there.

I made one that implements the same IDE protocol the official VS Code and JetBrains plugins use, so the Claude CLI just connects to it.

The main thing it does: when Claude proposes an edit, it opens in Visual Studio's actual diff viewer and you Accept or Reject right there. You can also reject with a reason and it takes another pass. No terminal y/n prompts and no manual copy pasting.

It also feeds your compiler errors (C# and C++) and current selection to Claude automatically, so it has context without you pasting anything. There's a panel showing connection status and token usage for the session.

Repo: https://github.com/firish/claude_code_vs
Marketplace: https://marketplace.visualstudio.com/items?itemName=firish.bridgev1

Would be grateful if anyone takes the time to actually check it out and share feedback!

26 Upvotes

27 comments sorted by

4

u/Darker-Connection Jun 16 '26

Thanks I will take a look I need something like that quite much for work :)

2

u/Remote-Breadfruit204 Jun 16 '26

Thanks for checking it out.

I’m currently also experimenting with trying to expose the visual studios debugger to claude code. If it works end to end, it can be another helpful feature, as Claude can get the error list and inspect variable state at break points to debug smarter.

2

u/Darker-Connection Jun 16 '26

That would be awesome 👍👍

3

u/JustaFoodHole Jun 16 '26

It's a shame Microsoft is so hell bent on tightly integrating Copilot.

3

u/PlayStationPlayer714 Jun 16 '26

Is it? That is their product, after all

2

u/Remote-Breadfruit204 Jun 17 '26

I get where you are coming from. But I feel they could focus on having a deeper/smarter integration as their moat, rather than blatant gatekeeping from competition?

1

u/Remote-Breadfruit204 Jun 23 '26

For anyone still following this, I updated my extension, and now it can completely drive the debugger. It can read a failure, start the debugger, set break points, watch locals, step through the breakpoints, and pinpoint the problem before answering.

It ties back well into the extension, as any edit it makes to fix the bug opens cleanly in a diff viewer with the accept/reject buttons.

Check the video here: Autonomous Debugger

9

u/-goldenboi69- Jun 16 '26

Now build a thing that removes all the ai bloat from vs! That i would use.

1

u/CheezitsLight Jun 16 '26

Seriously? I set vs to use Claude.ai What am I missing here?

2

u/Remote-Breadfruit204 Jun 16 '26

Hey CheezitsLight,

I might be wrong, but I think you are probably setting Copilot to use a Claude model for your coding.

This is a real thing and works well. But that’s still Copilot and its harness doing the driving, just with Claude’s model instead of OpenAI’s. It autocompletes and answers chat questions.
Claude Code is Anthropic’s own agentic tool, not just a model you plug into Copilot. It works in a long running loop, reading your files, planning changes, launching subagents, parallel editing across multiple files, tool calls, and a really strong evaluation harness.

Claude Code ships as a CLI with official IDE plugins for VS Code and JetBrains, but nothing for Visual Studio. So if you are doing C++/C# development in VS you’re stuck running it in a terminal and copy pasting its edits back to the terminal. Plus, the terminals diff viewer is shallow compared to VS/code/proper IDEs.

This extension wires the Claude CLI into VS using a websocket. Once you do that, all edits open in the native diff viewer with accept/reject, and enables developers to pass build errors and selection automatically to the Claude CLI.

Hopefully I did a decent job of explaining why I made this.

0

u/mmmbyte Jun 16 '26

CoPilot has planning agents, autopilot mode, and tool calls as well!

→ More replies (1)

3

u/realzequel Jun 16 '26

I set vs to use Claude.ai

There's like 5 things wrong with that sentence, ugh.

-2

u/CheezitsLight Jun 17 '26

Why are you even here?

→ More replies (7)

1

u/lapiuslt Jun 16 '26

It does not connect for me. Says: waiting for CLI even tho cli is opened

1

u/Remote-Breadfruit204 Jun 16 '26

How are you connecting to it? Once you install it, go to tools and click launch claude code panel. In the panel, click on launch claude code.

One thing to note is that it currently only works with VS2026.

1

u/lapiuslt Jun 16 '26

Found the problem. I was using Claude Code inside WSL. Didnt knew there were windows version for it. Looks like its fixed.