r/cpp • • Sep 14 '26

What’s New for C++ Developers in Visual Studio 2026 (18.7 – 18.10)

https://devblogs.microsoft.com/cppblog/whats-new-for-c-developers-in-visual-studio-2026-18-7-18-10/
91 Upvotes

35 comments sorted by

40

u/R3DKn16h7 Sep 14 '26

Soo much copilot :) So little everything else.

8

u/pjmlp Sep 15 '26 edited Sep 15 '26

3

u/Possibility_Antique Sep 18 '26

Honestly, this lack of care for real issues so they can push their AI slop has my personal projects collecting cobwebs.

3

u/MaccheroniTrader Sep 17 '26

And Copilot in Visual Studio is really bad

1

u/FckXFckMusk Sep 19 '26

Absolutely... nothing jumps out as being WOW OMG I can't wait....

46

u/MontyBlenheim Sep 14 '26

C++26? Nah, more AI shit

5

u/Baardi Sep 18 '26

C++26? We don't even have C++23 yet. (Finally getting it soon, though)

18

u/fortsnek274 Sep 14 '26

7

u/HighOutputLoad Sep 14 '26

Hilter is dead! This bug in intellisense was so annoying!

28

u/Kridenberg Sep 14 '26

Nice, nice. A lot of good changes, actually, but IntelliSense still does not work with modules on large code-bases, so I will pass this time as well.

14

u/fortsnek274 Sep 14 '26

Or on small code bases. Still waiting for that fix.

5

u/pjmlp Sep 14 '26

Since it is based on EDG, and now they are ramping down business...

4

u/Kridenberg Sep 14 '26

Last time I hear about EDG, there were rumors that EDG will be opensource. And those rumors have timeline of previous year

5

u/rdtsc Sep 14 '26

Visual Studio 2026 introduced experimental support for NuGet PackageReference in native .vcxproj projects

Interesting. I've been using PackageReference in C++ projects for almost 5 years without problems.

5

u/pjmlp Sep 14 '26

It is also favoured by Microsoft teams like the DirectX and C++/WinRT one.

There is an open ticket for NuGET like tooling for vcpkg in Visual Studio, but apparently there are only a few of us wanting such goodies.

Note that Clion has such experience.

1

u/LB-- Professional+Hobbyist Sep 14 '26

Are you sure? That never worked properly for me in C++ projects, I always had to use a packages.config file instead.

3

u/rdtsc Sep 14 '26

Well define properly. It doesn't work out of the box, of course. I include the following .props file into each project:

<?xml version="1.0" encoding="utf-8"?>
<Project>
  <PropertyGroup>
    <!-- This will turn off the base UWP-specific 'ResolveNuGetPackages' target -->
    <ResolveNuGetPackages>false</ResolveNuGetPackages>

    <RestoreProjectStyle>PackageReference</RestoreProjectStyle>
    <AssetTargetFallback>$(AssetTargetFallback);native</AssetTargetFallback>
    <TargetFrameworkMoniker>native,Version=v0.0</TargetFrameworkMoniker>
  </PropertyGroup>
  <ItemGroup>
    <ProjectCapability Include="PackageReferences"/>
  </ItemGroup>
</Project>

I then have projects consuming various NuGet packages (Microsoft's SourceLink, vcpkg NuGet export, and others).

3

u/sweetno Sep 14 '26 edited Sep 14 '26

18.9 was problematic for me. Has anyone else had this?

5

u/JVApen Clever is an insult, not a compliment. - T. Winters Sep 14 '26

Find all references still takes 69 seconds on LLVM? Time for visual studio to allow clangd to used instead

6

u/Kridenberg Sep 14 '26

ClangD has its own pile of problem

3

u/sweetno Sep 14 '26

Time for Microsoft to buy JetBrains.

4

u/delta_p_delta_x Sep 14 '26

Or at least, ReSharper. JetBrains have succeeded where Microsoft, EDG, and even LLVM have failed.

1

u/germandiago Sep 14 '26

In my experience Jetbrains has great IDEs. They have improved a lot over time.

4

u/pjmlp Sep 14 '26

Google most likely would never allow it, given their Android marriage with JetBrains.

0

u/[deleted] Sep 14 '26

[deleted] — view deleted comment

5

u/sweetno Sep 14 '26

Most likely, JetBrains refused.

0

u/[deleted] Sep 15 '26

[deleted] — view deleted comment

1

u/sweetno Sep 16 '26

Anyways, who cares. I'm just glad Google didn't get their hands on Jetbrains and ruin that company, given Google's current bad management.

You're onto something.

0

u/pjmlp Sep 16 '26

Probably for the same reason they could have bought Sun and avoid all Java drama, and rather spent it on lawyers.

InteliJ, Clion, Gradle as Android Studio foundations, Android Java subset, and Kotlin are still Java ecosystem anyway.

1

u/Alive-Soil-6480 Sep 14 '26

Is it only me whose CMakeLists.txt file in my CMake projects don't update when I add a new source file? So I have to add it in manually, thus what's the point? Might as well use VSCode or a nvim in CLI.

2

u/PunctuationGood Sep 15 '26 edited Sep 15 '26

Are you perhaps globing? Don't do it. CMake doesn't check for a delta between known files and current files when you invoke it. Only by modifying a CMakeLists file will the invocation update its known list of files. That's how it always worked.

Why? I presumed it ws deemed safer than "Trust me, bro. I know what I'm doing now and for ever. Like, totally. Even in three years. Even when I'll have left this company. And I also speak on behalf of all my current and future coworkers."

1

u/fortsnek274 Sep 15 '26

CONFIGURE_DEPENDS apparently fixes that.

2

u/PunctuationGood Sep 15 '26

And the CMake authors would still advise you against it:

We do not recommend using GLOB to collect a list of source files from your source tree. If no CMakeLists.txt file changes when a source is added or removed then the generated build system cannot know when to ask CMake to regenerate. The CONFIGURE_DEPENDS flag may not work reliably on all generators, or if a new generator is added in the future that cannot support it, projects using it will be stuck. Even if CONFIGURE_DEPENDS works reliably, there is still a cost to perform the check on every rebuild.

2

u/fortsnek274 Sep 15 '26

I would guess VS is not treating cmake as a first-class project format.

-5

u/kevleyski Sep 14 '26

I funded this project 1990s kind of surprised still going what do people use it for when the alternatives are pretty good