C++ Team Blog

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

Latest posts

Jul 22, 2024
Post comments count 3
Post likes count 3

Improving GitHub Copilot Completions in VS Code for C++ Developers

Erika Sweet

GitHub Copilot code completions are autocomplete-stye suggestions that appear inline as you code. Until today, they have used context from your active file and other tabs open in the editor to inform the suggestion that is returned. However, we know that more contextually relevant input leads to better suggestions. Our team has made changes to the C/C++ extension and the GitHub Copilot extension in VS Code to ensure that other relevant C++ context — like available types and methods — are also provided to Copilot completions. When you use the latest version of the C/C++ extension and the GitHub Copilot extensio...

Jun 27, 2024
Post comments count 0
Post likes count 1

What’s New in vcpkg (June 2024)

Augustin Popa

This blog post summarizes changes to the vcpkg package manager as part of the 2024.06.15 release, 2024-06-10 tool release, as well as changes to vcpkg documentation throughout June. This month’s release includes some error message improvements and bug fixes. Some stats for this period:   vcpkg changelog (2024.06.15 release) The following meaningful changes were made in this release:   Documentation changes If you have any suggestions for our documentation, please submit an issue in our GitHub repo or see the box at the ...

Jun 18, 2024
Post comments count 1
Post likes count 4

Understand your C++ symbols using Copilot in Visual Studio’s Quick Info

Sinem Akinci

Navigating your codebase and forget what exactly that method does? Looking for quick, easy-to-digest information on your code at any point in your development journey? We are excited to announce that now when you hover over symbols in your codebase, you'll have the ability to invoke Copilot conveniently within the Quick Info dialog to learn more about a given symbol and enhance existing or lacking code documentation. How it works Normally, in the Quick info window, you would see comments or xml documentation if it was generated by your team in the code, which can sometimes be unrelated to what the given symb...

Jun 10, 2024
Post comments count 0
Post likes count 1

Bosch widely adopts Visual Studio 2022 after experiencing performance improvements for C++ Linux cross-compilation

Sinem Akinci

Introduction The Bosch security camera team had been evaluating Visual Studio as a unified development setup for their team’s C++ development, which includes remote Linux C++ development for cross-compiling.  While evaluating Visual Studio 2022, the team had a positive experience of using Visual Studio for their C++ development due to notable improvements over the years. Specifically, compared to their experience with Visual Studio 2019, they noticed improvements such as:  In Visual Studio 2022, they migrated their project from CMake settings to CMake presets to improve portability between Vi...

Jun 5, 2024
Post comments count 4
Post likes count 0

Integrating C++ header units into Office using MSVC (3/n)

Cameron,
Zachary

Overview Introduction In our previous two (part 1, part 2) blog posts we discussed how Office was thinking holistically about header units. In this installment we’d like to share the concrete steps taken to integrate header units into the build of Microsoft Word, and their effect on build throughput. Throughout the post we'll use the term "build throughput" as opposed to "build performance" to avoid potential confusion with application runtime performance. This blog is primarily a recap of the presentation that Zachary gave at Pure Virtual C++ 2024. Remember that precompiled h...

May 31, 2024
Post comments count 1
Post likes count 4

What’s New in vcpkg (May 2024): Dedicated Pages for Each Package on vcpkg.io

Augustin Popa

This blog post summarizes changes to the vcpkg package manager as part of the 2024.05.24 release as well as changes to vcpkg documentation throughout May. This month’s update also includes individual pages for each package on the vcpkg website as well as several new documentation articles. Some stats for this period: There was no update this month to the vcpkg tool binary itself. However, we have made an important update to our website, vcpkg.io.   Individual pages for each port Each one of the 2,434 ports available in the vcpkg open-source registry now has a dedicated page o...

May 30, 2024
Post comments count 1
Post likes count 3

C++ Refactoring tools in Visual Studio

Mryam Girmay

Code refactoring is the process of restructuring existing code, while its outward functionality remains unchanged. By refactoring, you can simplify complex code structures, reduce code redundancy, and enhance code reusability. Visual Studio offers many tools to help refactor your C++ code. This article will delve into these tools, using the bullet3 open-source code as an example.  Rename  The renaming tool is useful when changing a symbol name that appears in multiple locations within your code. Manual renaming can lead to errors if one or more instances of your function or variable are overlooked. However, the...

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

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...

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

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...