<a href="https://devblogs.microsoft.com/cppblog/whats-new-for-c-developers-in-visual-studio-2026-18-1-18-6/?commentid=2789#comment-2789" target="_blank" rel="ugc"></a>
Visual Studio 2026 versions 18.1 through 18.6 deliver a wave of improvements for C++ developers. For MSVC Build Tools, the v14.51 release is now generally available with runtime performance gains and improved C++23 conformance. We also introduced Sample Profile Guided Optimization to help you improve the runtime performance of your C/C++ programs. In the IDE, we made significant investments in AI-powered experiences to optimize your builds, modernize your code, debug and profile, and more. We enhanced Copilot Chat to make it easy to incorporate skills, custom agents, and MCP servers into your workflow. We also added a few productivity features to save you time. This post summarizes what shipped and how you can take advantage of it today. If you also want to catch up on what shipped in 18.0, see What’s New for C++ Developers in Visual Studio 2026 version 18.0. For the full, condensed list of what’s new in Visual Studio 2026, take a look at the release notes.
We fixed 416 C++ bugs during the 18.1 – 18.6 timeframe, over the past 6 months, across the Visual Studio IDE and MSVC Build Tools. Please continue to report bugs to us via the menu at Help > Send Feedback > Report a Problem in the IDE or on Developer Community.
Let’s start with some simple features that can save you time when performing common actions in the IDE:
MSVC Build Tools version 14.51 is now available and installed by default with the C++ desktop and gaming workloads. See the Release Candidate blog post for more information on what’s new. For a deep dive on specific topics, see C++23 Support, C++ Performance Improvements, and STL Changelog. The v14.51 release will receive 9 months of servicing, as previously announced.
We introduced Sample Profile Guided Optimization (SPGO), a new approach to profile-guided optimization that makes it easier to bring PGO quality optimizations to your codebase without the overhead and complexity of traditional instrumentation. SPGO is available in all versions of Visual Studio 2022 and Visual Studio 2026.
Instead of instrumenting your binary and running it through synthetic training scenarios, SPGO uses hardware performance counter sampling collected from your actual release binaries. These can be collected with negligible runtime overhead while giving you much more flexibility in where and how you collect data. With this feature, you may be able to achieve 5-15% runtime performance improvements for your C/C++ applications.
GitHub Copilot modernization for C++ (currently in Public Preview) helps you update your projects to the latest MSVC Build Tools version and resolve upgrade-related issues. It works with both MSBuild (.sln) and CMake projects. Access it by typing @Modernize in Chat, right-click the solution in Solution Explorer, or use Project > Retarget solution. Copilot upgrades your project settings, fixes compiler errors and warnings, and generates a detailed migration report.

GitHub Copilot build performance for Windows (currently in Public Preview) uses Build Insights to identify and fix C++ build performance issues. It now supports iterative build analysis, detecting cases where optimizations like precompiled headers show gains in day-to-day incremental builds rather than full rebuilds. You can also target a specific project for analysis. Either mention the project in your prompt or select it in Solution Explorer and choose Run Build Insights on Selection > Improve Build Performance from the context menu.
To get started, open a C++ project, then, with Copilot Agent Mode enabled, ask @BuildPerfCpp in Chat to optimize your build time. The agent can:
C++ code editing tools for GitHub Copilot (Generally Available) allow you to perform refactoring operations across multiple files with semantic intelligence.

When enabled via the Tools icon in Copilot Chat, Copilot can map out class inheritance hierarchies and follow function call chains. In addition, GitHub Copilot includes many built in tools that also apply to C++ codebases.

In particular, find_symbol allows you to find all references to symbols across your project and access type information, declarations, and scope metadata.
Using these tools and more, you can work with Copilot using the same semantic intelligence used to power IntelliSense in Visual Studio.

Copilot agents now automatically discover and use Agent Skills, reusable instruction sets that teach agents how to handle specific tasks like running a build pipeline, generating boilerplate, or following your team’s coding standards. Define skills as SKILL.md files, which can be present in any of the following locations to be detected by Visual Studio:
Team skills (in your solution/workspace directory):
Personal skills (in your user profile):

A new Skills panel in the chat window lets you browse, edit, search, and locate all your skills. If you’re looking for skills or agents to try, check out the awesome-copilot repo.
Alongside the built-in agents available in Visual Studio by default, you can now define custom Copilot agents tailored to your workflow. Simply add an .agent.md file under .github/agents in your repo to get started, and you should see it start appearing at the bottom of the agents list in Copilot Chat (below the built-in agents).

Custom agents have full access to workspace awareness, code understanding, tools, your selected model, and MCP connections. For example, you might create a custom agent that enforces your coding standards during code review, or one that has a detailed understanding of your codebase and architecture.
The new Planning chat mode lets you collaborate with Copilot on an implementation plan before making code changes. Copilot uses read-only tools to explore your codebase, asks clarifying questions, and drafts a plan saved as .copilot/plans/plan-{title}.md. When ready, click Implement plan to hand it off to Agent mode. This is especially useful for complex operations, such as large C++ refactoring tasks, where you want to think through things like header dependencies and build impacts before committing.

You can start cloud agent sessions directly from Visual Studio. Select Cloud from the agent picker to delegate tasks like multi-file refactors, documentation updates, or tedious edits. The cloud agent creates a GitHub issue, generates a pull request, and notifies you when done.

When Copilot edits multiple files, you don’t need to review each one separately anymore. Click Open Changes Summary in the Chat working set to review all changes in a single view.

You can accept or undo changes at the all-files, per-file, or per-chunk level. 
Visual Studio now has comprehensive MCP support, letting Copilot connect to external tools and knowledge sources. For example, you could connect to MCP servers for things like managing build system diagnostics, custom analysis tools, package managers, or documentation wikis.

The following MCP features are available in Visual Studio 2026:
The new Debugger Agent workflow validates bugs against real runtime behavior instead of relying on static analysis.

Start from a GitHub or Azure DevOps issue or describe the bug in natural language using Debugger Mode (dropdown in the lower-left corner of Chat). The agent:
A new Analyze Call Stack button in the Call Stack window sends your current debug state to Copilot. It understands both synchronous and asynchronous call stacks, annotates relevant frames, and explains why execution is paused, what the thread is waiting on, and how it got there.
The Profiler Agent now supports unit test workflows, making it directly applicable to C++ scenarios where dedicated benchmarks are not always practical. The agent discovers relevant unit tests that exercise performance-critical code paths, runs them with profiling, and suggests targeted optimizations in a guided loop. If no suitable tests exist, it creates a lightweight measurement artifact to capture baseline metrics.

Segment Heap is a modern heap implementation in Windows that delivers stronger protection against common memory vulnerabilities, higher allocation throughput, lower memory fragmentation, better scalability across cores, and more predictable performance under load. This feature is now supported for C++ projects in Visual Studio and is on by default for new C++ projects. Existing MSBuild projects can opt in under Project Properties > Manifest Tool > Input and Output.

For CMake projects, see the documentation for how to enable Segment Heap.
If your application allocates and frees memory frequently (game engines, parsers, servers), Segment Heap can reduce fragmentation and improve throughput without code changes.
Git users in Visual Studio can now attach a git commit as context to Copilot Chat from Git History, File History, or Annotate (Blame).

Multi-select is also supported. Ask Copilot to explain the change, spot issues, or write a similar change for another file.
From the 18.0 release, you can also still specify commits in the chat with #commitId.
Download Visual Studio 2026 to get all of these features and more. If you are already on VS 2026, update to the latest version through Help > Check for Updates.
We want to hear from you. Report issues and share suggestions through Help > Send Feedback in Visual Studio, visit Developer Community, or leave a comment below.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Comment on NuGet PackageReference for C++ Projects in Visual Studio by Augustin Popa | 0 | 5 | 29-05-2026 |
| 2 | Comment on NuGet PackageReference for C++ Projects in Visual Studio by Jonas Frank | -3 | 3 | 01-06-2026 |
| 3 | Comment on Streamline C++ Code Intelligence Setup in Copilot CLI by Alexander Kleine | 0 | 1 | 25-06-2026 |
| 4 | Comment on Segment Heap support for C++ projects in Visual Studio by Mehmet Iyigun | 5 | 7 | 28-05-2026 |
| 5 | Ubuntu Studio 26.04 LTS Beta Released | 0 | 5 | 26-03-2026 |
| 6 | devel/tree-sitter - 0.26.11 | 0 | 5 | 12-07-2026 |
| 7 | Comment on Boosting Adobe Photoshop’s Performance with MSVC and SPGO by Pratap Chandar | 0 | 5 | 06-07-2026 |
| 8 | sysutils/cfengine-devel - 3.28.20260713,1 | 0 | 5 | 13-07-2026 |
| 9 | X-post: WordPress Credits Updates | 0 | 2 | 29-06-2026 |
| 10 | sysutils/cfengine-masterfiles-devel - 3.28.20260710,1 | 0 | 5 | 13-07-2026 |