C++ Team Blog

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

Latest posts

Aug 29, 2017
Post comments count 0
Post likes count 0

Visual Studio extensions for C++ developers in Visual Studio 2017

Adam Welch (MSFT)

点这里看中文版 ⏱ Updated on Jan 17, 2018 with information on ImageWatch and Child Process Debugging In this blogpost we want to highlight several Visual Studio extensions that can make your life better as a C++ developer if you’re using Visual Studio 2017 or considering upgrading.   We have also heard from many of you that not having certain C++ extensions available on Visual Studio 2017 was preventing you from moving to the latest version.  We wanted to let you know that we are addressing this feedback and many of the extensions you have mentioned are now available on Visual Studio 2017. We happy to announce t...

Aug 25, 2017
Post comments count 0
Post likes count 0

A new C++/WinRT update is available

Andrew Pardoe

A new update of C++/WinRT is available on GitHub! C++/WinRT is a standard C++ language projection for the Windows Runtime, implemented solely in header files. The C++/WinRT team has been quiet since their announcements at CppCon 2016. They've made a lot of progress in this update, leading up to the first public release of the CppWinRT compiler. You can read the announcement on the ModernCpp website. We on the Visual C++ team find C++/WinRT to be one of the best test cases for our compiler as MSVC approaches conformance with the C++ Standard. As you try new, standards-conforming features out in MSVC, please be s...

Aug 25, 2017
Post comments count 3
Post likes count 0

Visual C++ for Linux Development with CMake

Marc Goodner

In Visual Studio 2017 15.4 you can now target Linux from your CMake projects. This enables you to work on your existing code base that uses CMake as your build solution without having to convert it to a VS project. If your code base is cross-platform you can target both Windows and Linux from within Visual Studio. This post will give an overview of the CMake support for Linux in Visual Studio. You can go here to learn more about CMake in Visual Studio generally. Update 10/24/2017: 15.4.1 is in the Release channel now and addresses the setup issue previously noted here. 15.5 is in the Preview channel and removes...

Aug 22, 2017
Post comments count 0
Post likes count 0

Visual Studio Code C/C++ extension August 2017 Update

Rong Lu

Last week we shipped the August 2017 update to the Visual Studio Code C/C++ extension. Besides several bug fixes, this update includes a new command for resetting the IntelliSense database file and continued improvements to the new compiler-based IntelliSense engine. Thanks to everyone who provided us feedback on the new IntelliSense engine in the past couple months! “Reset IntelliSense Database” command The extension ships the “Tag Parser”, which is used to provide quick, but "fuzzy" results for some of the IntelliSense features. It is also used as the fallback solution for the other IntelliSense features powere...

Aug 15, 2017
Post comments count 0
Post likes count 0

Changes to Project Templates and Code Wizards in 15.3

Augustin Popa

Visual Studio 2017 Update 15.3 is a major release with many different improvements coming to the product. You can learn more about these changes in the 15.3 Release Notes. One aspect I want to highlight in this blog post pertains to changes made to the C++ templates in File > New Project and code wizards. We made these changes to account for feedback we received from you and to optimize the templates you use the most often. Let’s start by looking at the New Project dialog in 15.2. Many of you will be familiar with the way everything is laid out. There are a number of different templates under Visual C++, inc...

Aug 15, 2017
Post comments count 0
Post likes count 0

How to use the C++ Core Guidelines Checker outside of Visual Studio

Andrew Pardoe

This post written by Sergiy Oryekhov and Andrew Pardoe The latest C++ Core Guidelines Checker is deployed as a part of the Native Code Analysis tools in Visual Studio 2017 15.3. These tools are designed for use in Visual Studio, which provides a rule set editor for filtering warnings. But what if you want to adopt the C++ Core Guidelines checks in your automated builds? Using the C++ Core Guidelines Checker with MSBuild The Native Code Analysis checker (PREfast) is integrated into the MSBuild environment by custom targets files. You can use project properties to enable it, as well as add the C++ Core Guideli...

Aug 14, 2017
Post comments count 0
Post likes count 0

CMake Support in Visual Studio: Customizing your Environment

Will Buik

In Visual Studio 15.3, there are new ways for you to apply advanced configuration to your CMake environments. Please download the latest and try out the latest CMake features.  If you are just getting started with CMake, follow the link to learn more about CMake support in Visual Studio.  We are looking forward to your feedback. What’s new in CMakeSettings.json The heart of this new flexibility is inside your project’s CMakeSettings.json file and it stems from two new concepts: Let’s start with a quick example of how using this feature might look: To unpack this a bit, this example defines tw...

Aug 14, 2017
Post comments count 0
Post likes count 0

Managing warnings in the C++ Core Guidelines Checker

Andrew Pardoe

This post written by Sergiy Oryekhov and Andrew Pardoe With several new rules added to the Core Guidelines Checker in Visual Studio 2017 15.3, the amount of warnings produced for pre-existing code may greatly increase. The C++ Core Guidelines include a lot of recommendations that cover all kinds of situations in C+ code. We know that not everyone can do large rewrites of legacy codebases. The techniques in this blog post will help you use the C++ Core Guidelines to start an incremental journey towards a cleaner codebase by selectively enabling warnings or enabling warnings on a selected code region. In some...

Aug 11, 2017
Post comments count 0
Post likes count 0

C++17 Features And STL Fixes In VS 2017 15.3

Stephan T. Lavavej - MSFT