C++ Team Blog
The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team
Latest posts
Use Boost.Hana via vcpkg with the latest MSVC compiler
Overview As we continue to work towards improving the conformance of the MSVC compiler for the C++ community, we would like to enable more C++ libraries, and today we are bringing Boost.Hana to Visual C++. Building on our recent C++ conformance progress, customers can now use Boost.Hana with the VS2017 15.7 update after we've applied some source workarounds in the vcpkg version. We want to thank the author of Boost.Hana, Louis Dionne, for working with us on this effort and for extending his support. How do I get it? Background You may have seen our VCBlog post about C++ conformance completion ...
Visual Studio Code C/C++ extension May 2018 Update – IntelliSense configuration just got so much easier!
Visual Studio Code C/C++ extension May 2018 Update – IntelliSense configuration just got so much easier! This morning we shipped the May 2018 update of the C/C++ extension for Visual Studio Code, the most significant update to this extension in its 2-year history! 😊 The team has been working extremely hard for the past month to bring many new features into this release. We are super excited about it and hope you would like it too! In this update, we primarily focused on drastically reducing the amount of configuration you have do to gain a great IntelliSense experience, and also added a few other features to boo...
Macro Expansions in Quick Info Tooltips
With Visual Studio, we're always looking for ways to save developers time and make them more productive. A good way to do this is to look at C/C++ language features that are difficult to work with, and make it easier to understand them. Today, we're looking at macros. Macros are always a pain to deal with, yet they are one of those things that never seem to go away in C++. To make it easier to understand what a particular macro is doing, we are introducing a new feature: macro expansions in Quick Info tooltips. If you are already using Visual Studio, you may already know that you can hover over a code symbol (suc...
Recently completed UserVoice Suggestions for Visual Studio
In our blog posts on the Visual C++ Team Blog, we often encourage readers to submit suggestions on how to improve Visual Studio via UserVoice. We review these suggestions regularly and often work to incorporate them into future releases. This post aims to provide an update, expanding on our previous entry on completed UserVoice suggestions, and to let you know which suggestions we’ve recently marked as Complete. The following list contains 22 completed suggestions, totaling 892 votes! If you voted for or suggested any of these items, your votes ...
Announcing: MSVC Conforms to the C++ Standard
Achieving conformance with the C++ Standards has been a long road for the Visual C++ team. If you've seen us at any conferences lately, you've probably seen the MSVC Conformance slide. (You can grab a copy of the slide or watch the 2017 CppCon talk here.) Finishing the features on this slide – which includes features from C++11, C++14, and C++17 – has been one of our team's main goals for the past few years. We're happy to announce that in Visual Studio 2017 version 15.7 we've implemented these features. (The Technical Specifications are work-in-progress as they make their ways into the Standard.) The MSVC com...
CMake Support in Visual Studio – Code Analysis and CMake 3.11
Visual Studio 2017 15.7 Preview 4 is now available and we have added a few more CMake features in addition to the Targets View and single file compilation added in Preview 3. We keep the version of CMake that ships with Visual Studio as fresh as possible, so we have updated it to version 3.11. We are also excited to announce that CMake projects now support the IDE’s code analysis features that previously required a VCXProj to take advantage of. Please download the preview and check out the latest CMake features such as the Targets View, single file compilation, and more control over when projects are configure...
Announcing a single C++ library manager for Linux, macOS and Windows: Vcpkg
At Microsoft, the core of our vision is “Any Developer, Any App, Any Platform” and we are committed to bringing you the most productive development tools and services to build your apps across all platforms. With this in mind, we are thrilled to announce today the availability of vcpkg on Linux and MacOS. This gives you immediate access to the vcpkg catalog of C++ libraries on two new platforms, with the same simple steps you are familiar with on Windows and UWP today. Vcpkg has come a long way since its launch at CppCon 2016. Starting from only 20 libraries, we have seen an incredible growth in the last 19 mont...
Spectre diagnostic in Visual Studio 2017 Version 15.7 Preview 4
Visual Studio 2017 version 15.7 Preview 4 adds a new capability to our Spectre mitigation: the ability to see where the compiler would have inserted a mitigation and what data led to that action. A new warning, C5045, lets you see what patterns in your code would have caused a mitigation, such as an LFENCE, to be inserted. This change builds upon our existing Spectre mitigation support, including the changes introduced in Preview 3. Complete details about are available in context in the original MSVC Spectre mitigation post on VCBlog. The new warning is also discussed below. Enabling C5045 The C5045 warning ...
IntelliSense for Remote Linux Headers
In Visual Studio 2017 15.7 Preview 3 we are introducing IntelliSense for headers on remote Linux connections. This is part of the Linux development with C++ workload that you can choose in the Visual Studio installer. If you are just getting started with the C++ Linux support in Visual Studio you can read our C++ Linux tutorial at aka.ms/vslinux. When you add a new connection in the Connection Manager we will automatically determine the include directories for the compiler on the system. Those directories will be zipped up and copied to a directory on your local Windows machine. Then, when you use that connectio...