C++ Team Blog

The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team

Latest posts

Visual Studio Code CMake Tools Extension 1.18 Update: Quick Start with CMake and more…
May 28, 2024
Post comments count 0
Post likes count 0

Visual Studio Code CMake Tools Extension 1.18 Update: Quick Start with CMake and more…

Sinem Akinci
Sinem Akinci

The May release of CMake Tools in VS Code is now available. With this release, we have some new updates to the extension to improve CMake integrations with the extension's support. Some major highlights include improvements to the CMake: Quick Start command and support for CMake presets v7 and v8. To view the full list of updates with this release, please look at our CHANGELOG. This release features 2 contributions from our open-source community (@OrkunTokdemir and @hippo91). We greatly appreciate your continued support! CMake: Quick Start Updates The CMake: Quick Start command is a command that assists u...

What’s New for C++ Developers in Visual Studio 2022 17.10
May 22, 2024
Post comments count 9
Post likes count 4

What’s New for C++ Developers in Visual Studio 2022 17.10

Sy Brand
Sy Brand

We are happy to announce that Visual Studio 2022 version 17.10 is now generally available! This post summarizes the new features you can find in this release for C++. You can download Visual Studio 2022 from the Visual Studio downloads page or upgrade your existing installation by following the Update Visual Studio Learn page. Standard Library and Compiler We have incremented the minor version number of the MSVC toolset from 19.39 (VS 2022 v17.9) to 19.40 (VS 2022 v17.10). For more details, and some ways in which this will affect projects that assume that MSVC versions are all 19.3X for Visual Studio 2022 relea...

C++ at VS Code Day 2024
May 16, 2024
Post comments count 0
Post likes count 0

C++ at VS Code Day 2024

Alexandra Kemper
Alexandra Kemper

Looking to get caught up on new C++ features released in the last year? Check out the new YouTube video What’s New with C++ in VS Code posted for VS Code Day 2024. VS Code Day is an annual event hosted by the VS Code team which lets you elevate your development workflow with the latest and greatest features from Visual Studio Code. Sessions ranged from Generating Synthetic Datasets with GitHub Copilot to Real World Development with VS Code and C#.   The What’s New with C++ session covered updates to the C++ extension, CMake Tools extension, and tips on how you can leverage GitHub Copilot when developing a C++ pr...

Use AI-Powered Rename Suggestions to rename your C++ variables in Visual Studio
May 13, 2024
Post comments count 0
Post likes count 2

Use AI-Powered Rename Suggestions to rename your C++ variables in Visual Studio

Sinem Akinci
Sinem Akinci

We are very excited to announce C++ support for AI-Powered Rename Suggestions from GitHub Copilot in Visual Studio 2022. Seamlessly integrated into your familiar Rename workflow in the IDE, AI-powered rename suggestions dynamically generate name suggestions for any C++ identifier. It will generate proposed names based on its usage and your code's style to help you strike a balance between describing the variable with appropriate descriptive qualities while remaining concise. Instead of spending time brainstorming new names, you can focus on reviewing the variable names generated by Copilot to determine the approp...

Pure Virtual C++ 2024 Recordings Now Available
May 13, 2024
Post comments count 0
Post likes count 1

Pure Virtual C++ 2024 Recordings Now Available

Sy Brand
Sy Brand

All recordings for our Pure Virtual C++ 2024 conference are now available. Thanks to everyone who came along and hope to see you again next year! You can find the full playlist on YouTube. Main Sessions Automated Test of Shader Code - Keith Stockdale Message Handling with Boolean Implication - Ben Deane I Embedded a Programming Language in Debug Information - Sy Brand Enhancing C++ Development with Copilot Chat - Sinem Akinci Progress Report: Adopting Header Units in Microsoft Word - Zachary Henkel   Pre-conference Content ...

Building your C++ Code with CMake in VS Code
May 9, 2024
Post comments count 0
Post likes count 2

Building your C++ Code with CMake in VS Code

Alexandra Kemper
Alexandra Kemper

Build systems can help you manage your C++ project as it grows in scope and complexity, whether you are adding new features, dependencies, or cross-platform support. A popular choice in the C++ community is CMake which supports cross-platform development, streamlines build processes and configurations, and has many levels of customization. It also has first class support both in Visual Studio and in VS Code via the CMake Tools extension.   Check out our recent video on the steps you need to take to install and configure CMake in VS Code:     This video walks you through every step of the process:   ...

What’s New in vcpkg (April 2024)
May 8, 2024
Post comments count 0
Post likes count 3

What’s New in vcpkg (April 2024)

Augustin Popa
Augustin Popa

What’s New in vcpkg (April 2024) This blog post summarizes changes to the vcpkg package manager as part of the 2024.04.26 release as well as changes to vcpkg documentation throughout April. This month’s vcpkg release includes improvements for visually generated dependency graphs, a new triplet variable for tweaking what files are considered by the ABI hashing algorithm, several changes to our documentation, and some performance and bug fixes. Some stats for this period:   An overview of vcpkg in 10 minutes For the Pure Virtual C++ conference this year, I gave an overview of v...

New Checks Since Visual Studio 2022 17.8
May 3, 2024
Post comments count 2
Post likes count 2

New Checks Since Visual Studio 2022 17.8

Gabor Horvath
Gabor Horvath

The C++ team is committed to making your C++ coding experience as safe as possible. In the last couple of releases, we added new safety checks based on the requests of internal customers like the Windows group. Below is the overview of the new checks. For additional information for each of the checks, please refer to the linked help documents. C6395: Helping migration to C++17 and above Consider the following snippet: The meaning of the code depends on the order in which we evaluate the subexpressions. In case we evaluate the left-hand side of the assignment first, the code stores the incremented value of i ...

OpenMP improvements in Visual Studio C/C++ compiler: triangular loop collapse
Apr 30, 2024
Post comments count 0
Post likes count 0

OpenMP improvements in Visual Studio C/C++ compiler: triangular loop collapse

Vadim Paretsky
Vadim Paretsky

Our previous blog post about OpenMP support in Visual Studio announced support for the loop feature in version 17.8.  In the meantime, we have continued working on improving the feature and, in Visual Studio 2022 17.10, we have added a new, more efficient algorithm for partitioning work of certain types of collapsed triangular loops supported by the OpenMP Standard 5.2. All this work continues to be accessible if you are using the switch (see the Improved OpenMP Support for C++ in Visual Studio blogpost for details about this switch). In this blog we will describe this algorithm in some detail:  Triangular ...