C++ Team Blog

C++ tutorials, C and C++ news, and information about Visual Studio, Visual Studio Code, and Vcpkg from the Microsoft C++ team.

CMake Presets integration in Visual Studio and Visual Studio Code
CMake Presets integration in Visual Studio and Visual Studio Code
CMakePresets.json was released in CMake 3.19 and 3.20 and allows users to specify common configure, build, and test options and share them with others. We have added support for CMakePresets.json in Visual Studio and the CMake Tools extension for Visual Studio Code. You can now invoke CMake with the same CMakePresets.json file in Visual Studio...
Visual Studio Code C++ Extension April 2021 Update: CUDA C/C++ IntelliSense and Apple Silicon Support
Visual Studio Code C++ Extension April 2021 Update: CUDA C/C++ IntelliSense and Apple Silicon Support
The April 2021 update of the Visual Studio Code C++ extension is now available! This latest release offers brand new features—such as IntelliSense for CUDA C/C++ and native language server support for Apple Silicon— along with a bunch of enhancements and bug fixes. To find out more about all the enhancements, check out our...
Finding Bugs with AddressSanitizer: MSVC Compiler
Finding Bugs with AddressSanitizer: MSVC Compiler
Special thanks to Aaron Gorenstein for authoring this blog post. The AddressSanitizer (ASan) is generally available for MSVC since the recently-released Visual Studio 2019 version 16.9. We’ve already shown how easy it can be to find bugs in even production-ready code like EASTL. Here I’ll share an example of how it found a real bug in ...
Sign Up for the Pure Virtual C++ 2021 Conference
Sign Up for the Pure Virtual C++ 2021 Conference
Last year we ran the first Pure Virtual C++, a free one-day virtual conference for the whole C++ community. This May we're doing it again! Sign-up for free on the website to be the first to hear about our program schedule, access our extra on-demand C++ demos, and get more virtual surprises. The live event will run May 3rd 14:30-17:30 ...
vcpkg Host Dependencies for Cross-Compilation
vcpkg Host Dependencies for Cross-Compilation
If you’re not familiar with our C++ library manager vcpkg, welcome! This post covers an intermediate/advanced topic, so you may want to first get an overview and try things out from the vcpkg GitHub page or some of our previous blogs.   Introduction One of the best features of C++ is that it generates tailored, specialized code for...
IntelliSense Improvements in Visual Studio 2019
IntelliSense Improvements in Visual Studio 2019
We’ve made many great improvements to C++ IntelliSense over the course of the Visual Studio 2019 release. We’ve collected a few of the highlights in case you are interested in upgrading to Visual Studio 2019 or just want to learn how to be more productive when writing C++ code. If you have followed our blog since the 2019 Previews, you may...
Address Sanitizer for MSVC Now Generally Available
Address Sanitizer for MSVC Now Generally Available
 This post was last updated on March 10th, 2021. Special thanks to Aaron Gorenstein who provided most of the content for this blog post. Special thanks as well to Kevin Cadieux and Jim Radigan who also made contributions.   You can check out a demo on this feature in the latest Visual Studio Toolbox episode on YouTube: Visual Studio ...
Microsoft C++ Team at ACCU 2021
Microsoft C++ Team at ACCU 2021
Sy Brand and Erika Sweet from the Microsoft C++ Team will be presenting at ACCU 2021 this week. Come say hi in the virtual conference space and let us know if you have any questions about our talks, products, or anything else. We also recommend dropping by the #include <C++> table in the expo hall to learn more about their ...