C++ Team Blog

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

Latest posts

C++ Brace Pair Colorization and More in Visual Studio
Jan 24, 2023
Post comments count 4
Post likes count 1

C++ Brace Pair Colorization and More in Visual Studio

Mryam Girmay
Mryam Girmay

Visual Studio 17.5 brings you several new improvements in the C++ editing experience. Now we are excited to announce that C++ Brace Pair Colorization, Spell Checker, All-In-One Search, Reimagined Member List, and Macro Expansion Improvements are released in the Visual Studio Preview.   These features are also part of our focus on increasing game development productivity. Look out for a dedicated post coming soon. To start using the features, make sure to update to the latest version of Visual Studio Preview.   Brace Pair Colorization for C++ You can now visually distinguish each set of opening and closin...

Deploy and debug apps on remote targets
Jan 23, 2023
Post comments count 3
Post likes count 1

Deploy and debug apps on remote targets

Marc Goodner
Marc Goodner

There are a number of ways that Visual Studio and Visual Studio Code enable you to interact with remote machines. Both can enable you to connect to a remote machine and use it as a build machine and debug your applications there. Sometimes though your target is not the same as your build machine. For example, for embedded Linux devices you will likely want to cross compiler the application on a more powerful build machine then deploy to the device for debugging. This post is going to demonstrate how to build an application locally in a Dev Container for either a Raspberry Pi 3 or 4, then deploy and debug the appl...

vcpkg 2023.01.09 Release: Registry Pattern Matching, Documentation Changes, and More…
Jan 18, 2023
Post comments count 0
Post likes count 0

vcpkg 2023.01.09 Release: Registry Pattern Matching, Documentation Changes, and More…

Augustin Popa
Augustin Popa

The 2023.01.09 release of the vcpkg package manager is available. This blog post summarizes changes from November 15th, 2022 to January 9th, 2023 for the Microsoft/vcpkg and Microsoft/vcpkg-tool GitHub repos. Some stats for this period:   Notable Changes Notable changes for this release are summarized below.   Registries now support pattern matching when declaring packages Based on user feedback, we have added a feature that enables limited pattern matching for packages declared in registries. We now allow prefixes followed by a * character. The * character is a wi...

vcpkg Documentation Moves to Microsoft Docs Platform
Dec 14, 2022
Post comments count 2
Post likes count 0

vcpkg Documentation Moves to Microsoft Docs Platform

Augustin Popa
Augustin Popa

vcpkg Documentation Moves to Microsoft Docs Platform As of today, the vcpkg documentation has a new home at https://learn.microsoft.com/vcpkg. This is the platform that most Microsoft documentation is hosted on and comes with many features that make it easier to search, navigate, author, and review documentation. All current vcpkg articles are now visible on the new platform. We are still in the process of removing the documentation from other locations (vcpkg.io, the main vcpkg GitHub repo, and vcpkg.readthedocs.io). We will add redirects where possible to the new home for the docs to avoid breaking existing ...

Standards conformance improvements to /Gw in Visual Studio version 17.5 Preview 2
Dec 13, 2022
Post comments count 1
Post likes count 0

Standards conformance improvements to /Gw in Visual Studio version 17.5 Preview 2

Kyle Brady
Kyle Brady

The /Gw switch enables the linker to optimize global data to reduce binary size. As part of the 17.5 Preview 2 release a new flag, , has been added to improve C++ standards conformance when using . Previously, when using , certain One Definition Rule (ODR) violations were being ignored and would not cause an error. The new flag ensures that we do raise the appropriate errors. If you are currently using we recommend setting on your builds, as it’s currently off by default. This may change in a future major update. For a more detailed explanation of ODR, , and how this issue came about, read on below. Let’s go...

High-confidence Lifetime Checks in Visual Studio version 17.5 Preview 2
Dec 13, 2022
Post comments count 8
Post likes count 0

High-confidence Lifetime Checks in Visual Studio version 17.5 Preview 2

Gabor Horvath
Gabor Horvath

New High-confidence Lifetimes Checks in Visual Studio 2022

C11 Atomics in Visual Studio 2022 version 17.5 Preview 2
Dec 13, 2022
Post comments count 0
Post likes count 6

C11 Atomics in Visual Studio 2022 version 17.5 Preview 2

Charlie Barto
Charlie Barto

C11 Atomics in Visual Studio 2022 version 17.5 Preview 2

Improving the State of Debug Performance in C++
Dec 13, 2022
Post comments count 0
Post likes count 3

Improving the State of Debug Performance in C++

Cameron DaCamara
Cameron DaCamara

In this blog we will explore one change the MSVC compiler has implemented in an effort to improve the codegen quality of applications in debug mode. We will highlight what the change does, and how it could be extended for the future. If debug performance is something you care about for your C++ projects, then Visual Studio 2022 version 17.5 is making that experience even better! Please note that this blog will contain some assembly but being an expert in assembly is not required. Overview Motivation You might notice that the title of this blog is a play on words based on a recent popular...

MSVC OpenMP Update
Nov 29, 2022
Post comments count 2
Post likes count 1

MSVC OpenMP Update

Tanveer Gani
Tanveer Gani

Summary of your post, shown on the home page next to the featured image