C++ Team Blog
The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team
Latest posts
Using C++ Resumable Functions with Libuv
Previously on this blog we have talked about Resumable Functions, and even recently we touched on the renaming of the yield keyword to co_yield in our implementation in Visual Studio 2017. I am very excited about this potential C++ standards feature, so in this blog post I wanted to share with you a real world use of it by adapting it to the libuv library. You can use the code with Microsoft’s compiler or even with other compilers that have an implementation of resumable functions. Before we jump into code, let’s recap the problem space and why you should care. Problem Space Waiting for disks or data over a netwo...
`yield` keyword to become `co_yield` in VS 2017
Coroutines—formerly known as “C++ resumable functions”—are one of the Technical Specifications (TS) that we have implemented in the Visual C++ compiler. We’ve supported coroutines for three years—ever since the VC++ November 2013 CTP release. If you’re using coroutines you should be aware that the keyword `yield` is being removed in the release of VS 2017. If you use `yield` in your code, you will have to change your code to use the new keyword `co_yield` instead. If you have generators that use `yield expr`, these need to be changed to say `co_yield expr`. As long as you’re changing your code you might want to...
vcpkg 3 Months Anniversary, Survey
vcpkg, a tool to acquire and build C++ open source libraries on Windows, was published 3 months ago. We started with 20 libraries and now the C++ community has added 121 new C++ libraries. We really appreciate your feedback and we created a survey to collect it. Please take 5 minutes to complete it. The survey measure your overall satisfaction with the tool and the catalog of libraries. It also captures your needs and feedback to prepare the next version. Your input is essential for us to build a tool you need and use, thanks in advance for your time and inputs. As always don’t hesitate to contact us for any is...
CMake support in Visual Studio 2017 – what’s new in the RC.2 update
In case you missed the latest Visual Studio news, there is a new update for Visual Studio 2017 RC available. You can either upgrade your existing installation or, if you’re starting fresh, install it from the Visual Studio 2017 RC download page. This release comes with several enhancements in Visual Studio’s CMake experience that further simplify the development experience of C++ projects authored using CMake. If you’re just getting started with CMake in Visual Studio, a better resource will be the overview blogpost for CMake suport in Visual Studio that will walk you through the full experience including the la...
December Update for the Visual Studio Code C/C++ extension
At //Build this year we launched the C/C++ extension for Visual Studio Code. Keeping with the monthly release cadence and goal to continuously respond to your feedback, this December update introduces the following features: If you haven’t already provided us feedback, please take this quick survey to help shape this extension for your needs. The original blog post has already been updated with these new feature additions. Let’s learn more about each one of them now! Debugger Visualizations by default with Pretty Printing for GDB users Pretty printers can be used to make the output of GDB more usa...
Visual Studio 2017 RC Now Available
Visual Studio 2017 RC (previously known as Dev "15") is now available. There is a lot of stuff for C++ to love in this release: For more details, visit What's New for Visual C++ in Visual Studio 2017 RC. Going Native over on Channel 9 also has a good overview including a look at VCPkg. We thrive on your feedback. Use the report a problem feature in the IDE to share feedback on Visual Studio and check out the developer community portal view. If you are not using the Visual Studio IDE, report issues using the Connect Form for reporting issues. Share your product improvement sugge...
Introducing the Visual Studio Build Tools
Download the VS 2017 Build Tools (for C++ or managed code) Recap of the Visual C++ and Build Tools Last year we introduced the Visual C++ 2015 Build Tools to enable a streamlined build-lab experience for getting the required Visual C++ tools without the additional overhead of installing the Visual Studio IDE. We expanded the options to include tools like ATL and MFC, .NET tools for C++/CLI development, and various Windows SDKs. There was also an MSBuild standalone installer for installing the tools needed for building .NET applications called the Microsoft Build Tools 2015. The new Visual Studio Build Tools ...
Find All References re-designed for larger searches
Visual Studio 2017 comes packed with several major changes to the core developer productivity experience. It is our goal to maximize your efficiency as you develop applications, and this requires us to constantly refine our features and improve on them over time. For Visual Studio 2017, we wanted to improve code navigation, particularly for larger solutions which produce many search results. One big focus for us was Find All References. The other was Navigate To, described in a separate blog post. Find All References is intended to provide an efficient way to find all usages of a particular code symbol in your ...
Introducing Go To, the successor to Navigate To
Visual Studio 2017 comes packed with several major changes to the core developer productivity experience. It is our goal to maximize your efficiency as you develop applications, and this requires us to constantly refine our features and improve on them over time. For Visual Studio 2017, we wanted to improve code navigation, particularly for larger solutions which produce many search results. One big focus for us was Navigate To (now known as Go To). The other was Find All References, described in a separate blog post. We rebranded our Navigate To feature to Go To, an umbrella term for a set of filtered navigati...