claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Add support for Visual Studio 2026 Integration

Open ovftank opened this issue 11 months ago • 158 comments

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

I rely on Visual Studio 2026 for C++ and Win32 system-level development (e.g., global hooks, drivers) because its debugger and toolchain are superior to VS Code/JetBrains for this specific stack.

Currently, claude-code only offers native plugins for VS Code and JetBrains. To use Claude Code with Visual Studio 2026, I am forced to run it in a detached terminal window. This creates significant friction:

  1. No Integrated Diff: I have to review complex code changes in the terminal text stream instead of Visual Studio's native Diff/Merge GUI.
  2. No Context Awareness: Claude cannot automatically see my open files, selected code, or compiler diagnostics (error list). I have to manually copy-paste errors or file contents.
  3. Context Switching: Constant Alt-Tab between the IDE and the terminal breaks flow.

Proposed Solution

Create a native VSIX extension for Visual Studio 2026 that provides feature parity with the existing VS Code extension:

  1. Integrated Chat Panel: A dockable tool window within VS 2026.
  2. Native Diff Viewing: When Claude proposes changes, show them using Visual Studio's native Diff window for review/accept/reject.
  3. Context Synchronization: Automatically share active file content, cursor selection, and build errors/warnings with the agent.
  4. /ide Command Support: Allow terminal sessions to link to the active VS instance.

Alternative Solutions

  • Current Workaround: Running claude CLI in an external terminal (Windows Terminal) or the VS Integrated Terminal. This is suboptimal due to the lack of GUI diffs and auto-context.
  • Switching IDEs: Trying to move the C++ project to VS Code just for Claude support, but this sacrifices the advanced debugging capabilities of Visual Studio 2026 required for Win32 development.

Priority

High - Significant impact on productivity

Feature Category

Other

Use Case Example

Scenario: Debugging a Win32 Keyboard Hook

  1. I am debugging a SetWindowsHookEx crash in hook.cpp inside Visual Studio 2026.
  2. I hit a breakpoint where a variable pKey is null.
  3. Ideally: I open the Claude Code panel inside VS, select the crashing function, and ask: "Why is pKey null here?".
  4. Claude analyzes the selected code and the current file context automatically.
  5. Claude proposes a fix (adding a null check).
  6. I click "Review", and VS opens its native Diff window showing the change.
  7. I click "Accept", and the code is updated without me ever leaving the IDE.

Additional Context

Visual Studio remains the de-facto standard for Windows native development. Ignoring it excludes a large portion of systems engineers and C++ game developers.

ovftank avatar Jan 01 '26 02:01 ovftank

Yes please, just using the integrated terminal is of limited use, and trying to deal with game projects in VS Code is not a sacrifice worth making.

midgen avatar Jan 12 '26 09:01 midgen

I had a long Pro Plan session with Claude CLI trying to do this.. I installed Claude Code Extension for Visual Studio. That got me as far as Claude Code window in VS2026. Anything I type pops up the Github Copilot Hub. There it looks as if I can 'Manage Models' 'Bring my own model' . Choices include Anthropic. At which point it asks for an API key. I don't have one. A separate billing process involving credits. Might that work?, I don't fancy trying even $5 to find out. Back to CLI .

72degrees avatar Jan 13 '26 21:01 72degrees

It's hard to pitch Claude Code to my boss without proper VS integration in my .NET environment

daijoubu-dev avatar Jan 22 '26 20:01 daijoubu-dev

Windows game dev is almost exclusively C++ and Visual Studio. I wish there was an extension.

Acebond avatar Jan 25 '26 00:01 Acebond

It would be really a breaktrhough. Hate AI tools being released for VS Code and not for VS!

xMANIGHTx avatar Jan 27 '26 19:01 xMANIGHTx

It's so weird that Claude Code isn't available for Visual Studio 2022 or 2026 yet. VS Code is nice when I'm using it, but 90% of my work is in the Visual Studio IDE. The workarounds we have to come up with are annoying.

joshuajrrc avatar Jan 27 '26 23:01 joshuajrrc

+1

drauch avatar Jan 28 '26 15:01 drauch

+1

san avatar Feb 03 '26 00:02 san

Dear god, yes please. We have half the team on vs code, I'm using copilot on Visual Studio...having the option to just use claude code and add MCP-Servers using the same config as in visual studio code(Visual studio simply doesn't support prompts the same way and complains about "version" and other json properties which literally don't invalidate the rest of the json config values). I'm sure Anthropics being so close with Microsoft SHOULD be able to bring the same user experience to Visual Studio in fact I can't understand why Microsoft released Visual Studio 2026 with such subpar support for these features in the first place compared to VSCode.

Looooooka avatar Feb 03 '26 11:02 Looooooka

I was using Claude CLI this morning to review some code and then add features, including an additional form button. It successfully proposed the changes, redesigned the form, then after I had backed up, accepted the changes and given the go ahead it ran the build and debug. The IDE was open at the time so I could have the windows open side by side. Not ideal but gave a hint of what could be achieved if this integration request was implemented.

72degrees avatar Feb 03 '26 14:02 72degrees

You can leave a reaction to the first post, or subscribe to the issue without commenting "yes please", triggering notifications and emails for everyone who is following

Inrego avatar Feb 04 '26 07:02 Inrego

Adding my voice here. I'm a Max subscriber using Visual Studio 2026 on Windows 10 for cross-platform Avalonia UI development. Getting Claude Code working in VS required a community extension, a WinGet install, manually copying claude.exe to a different directory because the extension couldn't find it, registry edits for terminal embedding, and several hours of troubleshooting. The tool is powerful once it's running, but the lack of native VS support makes the onboarding experience painful. Full Visual Studio should not be treated as second-class to VS Code.

Full stack development uses azure, aspire, avalonia and a host of complex tools. Windows 10 , especially among enterprise developers is the de-facto standard. Your own Claude Code Max ai wonders why you have neglected the huge market that is currently under-served. If you wont listen to us, listen to Claude Code using a MAX subscription..

coleblarson avatar Feb 08 '26 22:02 coleblarson

This is an absolute must for us. Our entire development team uses Visual Studio 2026 for our .Net backend development. The only way for the team to use Claude is via GitHub copilot which is a very expensive option for us.

hesperanca avatar Feb 15 '26 09:02 hesperanca

Unfortunately, Claude Code Opus 4.6 is not good enough to build a Visual Studio 2026 extension. Maybe in the future, if models improve, we can see something like that.

Youlean avatar Feb 26 '26 22:02 Youlean

Please Anthropic, put this high on your list of things to do. Currently having to use Claude LLM through Github copilot. I do all my planning using Claude Desktop but would love to explore implementing these complex plans through your tools so I wouldn't have to explain the context of what I am doing again. I have MCP to ADO setup and it builds my stories but there are still details on my implementation plans that are lost that I have to correct through the process.

manicfarmer1 avatar Mar 01 '26 15:03 manicfarmer1

+1

LeroyK avatar Mar 03 '26 09:03 LeroyK

+1

PieKnu avatar Mar 03 '26 14:03 PieKnu

+1

schovan avatar Mar 03 '26 14:03 schovan

+1

CMor1184 avatar Mar 03 '26 22:03 CMor1184

This is a really necessary feature. There is an extension, but it’s inconvenient. Please make it available in the Visual Studio 2022 version as well.

wlstjr1253 avatar Mar 04 '26 04:03 wlstjr1253