C++ Team Blog
229 FOLLOWERS
C++ tutorials, C and C++ news, and information about Visual Studio, Visual Studio Code, and Vcpkg from the Microsoft C++ team.
C++ Team Blog
3d ago
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 th ..read more
C++ Team Blog
1w ago
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 ver ..read more
C++ Team Blog
2w ago
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 Cop ..read more
C++ Team Blog
2w ago
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 ..read more
C++ Team Blog
2w ago
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
A Tour of the IFC SDK: Tools for a C++ Module Format – Camer ..read more
C++ Team Blog
3w ago
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 ..read more
C++ Team Blog
3w ago
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:
There are now 2,426 total ports available in the vcpkg public registry. A port is a versioned recipe for building a package ..read more
C++ Team Blog
1M ago
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:
a[++i] = i;
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 store ..read more
C++ Team Blog
1M ago
Our previous blog post about OpenMP support in Visual Studio announced support for the loop collapse 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 -openmp:llvm switch (see the Improved OpenMP Support for C++ in Visual Studio blogpost for details about this switch). In this blog we will describe th ..read more
C++ Team Blog
1M ago
Pure Virtual C++, our free one-day virtual conference for the whole C++ community, is now live! Check it out on YouTube:
The sessions are:
Automated Testing of Shader Code with Keith Stockdale (Rare) – 15:00 UTC
Message Handling with Boolean Implication with Ben Deane (Intel) – 15:30 UTC
I Embedded a Programming Language In Debug Information with Sy Brand (Microsoft) – 16:00 UTC
Enhancing C++ development with Copilot Chat with Sinem Akinci (Microsoft) – 16:30 UTC
Progress Report: Adopting Header Units in Microsoft Word with Zachary Henkel (Microsoft) – 17:00 UTC
The post Pure Virtual C++ 2 ..read more