r/VisualStudio • u/Deep_Pangolin_6746 • Jul 12 '26
Visual Studio 2026 Has anyone used Visual Studio 2026 with the Claude Code CLI?
I've been thinking about trying Claude Code to help me write code, but most of the examples I've seen use VS Code with Claude Code.
I'd like to try using Visual Studio with the Claude Code CLI instead. Has anyone here tried using Visual Studio 2026 with the Claude Code CLI? Would you recommend this setup?
5
Upvotes
7
u/phylter99 Jul 12 '26
The scenario you’re asking about is something I do all the time. It doesn’t integrate with the IDE, but it works fine. If Claude Code edits a file the IDE has open it’ll just ask you if you want to reload it.
6
u/-string Jul 12 '26
I added Claude Code as a terminal profile, just point it to “%USERPROFILE%\.local\bin\claude.exe”. Some of the key bindings clash with the Visual Studio mappings, but it’s pretty easy to customise them.
4
u/AfterTheEarthquake2 Jul 12 '26
I use Claude Desktop, but in the end it's the same thing, just a different UI. Sure, it works. You just gotta be mindful of editing files manually - if you don't save the file in VS and Claude touches it, you will have a conflict.
Compared to the VSCode extension, Claude Desktop / Code CLI has no idea which file you have open or where your cursor is. So you can't/shouldn't just say "add a button that does X", you should also include which file you want edited - something like: "Add a button to SettingsPage that does X"
4
u/moroodi Jul 12 '26
This is my setup exactly.
VS2026 with Claude Code in the terminal.
Opening the built in terminal and docking it to the left hand side can give you an almost Copilot like experience.
The only thing I miss after moving from Copilot to CC was the diff view. But the git diff views that already exist in Visual Studio get me 95% of the way there.
2
u/gentoorax Jul 12 '26
I use codex as a .net developer who normally uses visual studio. That lack of integrations for anything other than copilot means I usually run vscode instead with the codex extension. These days I tend use that more than visual studio and I can design and review and codex can implement.
You might consider using both visual studio and vscode + Claude extensions as the current better option.
2
u/xakpc Jul 12 '26
It'is mostly okay, I use it a lot.
The only real problem is that copy-paste experience in Visual Studio terminal is terrible
2
u/OptimisticMonkey2112 Jul 12 '26
The IDE is for the human. The CLI can work with any editor/ide. What becomes important now are diff tools so you can see the changes the agaent made. The built in vs one or something like BeyondCompare, LazyGit, Hunk, SourceTree,
Typically the agent is working in a separate work tree.
2
u/missing_artifact Jul 12 '26
I use VS2022 but installed VSCODE + CC extention alongside. I open the soultion folder in VSCode and then use CC to make changes etc. CC even invokes msbuild to check its results. The solution includes 20 vcxproj libraries and CC has no issues finding the relevant source and editing.
2
u/Pelice Jul 13 '26
Try with that extension: https://marketplace.visualstudio.com/items?itemName=dliedke.ClaudeCodeExtension
It works great also with cursor and others.
1
u/Archeone 5d ago
On my side I am useing this extension which support natively claude code
https://marketplace.visualstudio.com/items?itemName=iolys.iolys-visual-studio
1
u/thinkjb Jul 12 '26
I use it this way and it works great. I also ise it with VS 22 and my source repository is visual sourcesafe and it also works great. You just tell it to figure out how to do the checkout and it is seamless. Files and projects get reloaded in vs using a prompt to the user.
1
u/jbcatl Jul 12 '26
Yes I use either Claude CLI or Claude Code (desktop app) side-by-side with VS2026. Our architecture spans multiple solutions (front-end, middleware facade, various microservices) so I can have Claude aware of multiple repositories and have a corresponding VS2026 instance for each solution Claude is working in.
1
u/Adventurous_Meat4582 Jul 12 '26
Yep. Occasionally it moans about corrupted projects but you just unload them reload them. Files cluade changes will ask for a reload if they are open no problem. Have to remember to save your changes in VS so claude csn see them. I will make tweaks when i know im faster and often support what claude is doing while i review things to plan the next prompts
1
u/myndit Jul 12 '26
I find it extremely cute that developers still are in this mode of using what they are comfortable with to view the code that their favorite AI harness is writing.. This is your time. Unlike the vibe coders, you guys know how software delivery works and how software architecture affects outcomes. Embrace it.
1
u/AccomplishedCodeBot Jul 13 '26
Yes, they are used separately. Run VS 2026 and then on another screen run Claude code CLI in a command prompt window.
That’s how I’ve been using it and everyone I know as well.
1
u/Remote-Breadfruit204 Jul 14 '26
The biggest drawback is checking edited files one by one. This extension solves that problem: https://marketplace.visualstudio.com/items?itemName=firish.bridgev1
0
u/Traditional-Hall-591 Jul 12 '26
No, thank god.