C++ Team Blog

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

Latest posts

Mar 13, 2018
Post comments count 10
Post likes count 0

ClangFormat Support in Visual Studio 2017

Augustin Popa

Visual Studio 2017 15.7 Preview 1 comes with built-in ClangFormat support for C++ developers. Specifically, we ship version 5.0 of the clang-format.exe. ClangFormat is a utility that makes it easy to style and format your code based on a set of rules that can be configured in a .clang-format or _clang-format file. This file should be present in your source code directory tree, and applies formatting conventions to all code files at the same level or in any sub-folders. It is easily shareable via source control, so you can enforce coding conventions across your whole development team. Note that Visual Studio al...

Mar 13, 2018
Post comments count 0
Post likes count 0

C++ Code Analysis Improvements for Visual Studio 2017 15.7 Preview 1

Kyle Reed

点这里看中文版 We're making it easier to configure and use the C++ code analysis features with a set of changes targeting 15.7. In the first 15.7 preview we've cleaned up the UI, fixed our documentation links and, most importantly, simplified the way analysis extensions are configured.  If you're not familiar with C++ Core Check, it's a code analysis extension that helps you update your code to be safer and use a more modern style as outlined in the C++ Core Guidelines. You can learn more about the rules we enforce on our reference page. C++ Core Check Extension on by Default We wanted to make it easier for developers ...

Mar 13, 2018
Post comments count 0
Post likes count 0

Linux C++ Workload improvements to the Project System, Linux Console Window, rsync and Attach to Process

Marc Goodner

点这里看中文版 In Visual Studio 2017 15.7 Preview 1 we have made a number of improvements to our support to the Linux C++ workload based on your feedback. You can learn more about our Linux C++ workload in Visual Studio here. MSBuild Project System improvements We added some new properties to Linux projects on the C/C++ General properties page. Max Parallel Compilation Jobs allows you to launch additional compilation processes. The default is 1 but can be increased to improve your build throughput. Public Project Include Directories allows you to specify directories in your project you want exposed to other project...

Feb 23, 2018
Post comments count 0
Post likes count 0

Arithmetic overflow checks in C++ Core Check

Sunny Chatterjee

点这里看中文版 We've improved the C++ Code Analysis toolset with every major compiler update in Visual Studio 2017. Version 15.6, now in Preview, includes a set of arithmetic overflow checks. This article discusses those checks and why you’ll want to enable them in your code. If you’re just getting started with C++ Code Analysis in Visual Studio, learn more about the overall experience in this overview blog post. Motivation As part of the C++ Code Analysis team, we work with groups across the company to identify classes of vulnerabilities that could be detected with better tooling and language support. Recently, as pa...

Feb 20, 2018
Post comments count 0
Post likes count 0

Visual Studio Code C/C++ extension Feb 2018 update

Rong Lu

点这里看中文版 The February 2018 update to the Visual Studio Code C/C++ extension is here! In addition to several bug fixes, this update added colorization for inactive code regions, making it easy to read C and C++ code. You can find the full list of changes in the 0.15.0 release notes. Colorization for inactive regions Inactive code regions that are controlled by conditional-compilation directives, such as #if and #ifdef, are now greyed out in the editor. Join the Insiders program If you have been using, or are interested in using, the C/C++ extension for Visual Studio Code and would like to get early access to the...

Feb 6, 2018
Post comments count 0
Post likes count 0

Vcpkg: introducing installation options with Feature Packages

EricMittelette

We are happy to announce a new feature for vcpkg in version 0.0.103: Feature Packages. Vcpkg is a package manager to help acquiring and building open source libraries on Windows; vcpkg currently offers over 600 C++ libraries available for VS2017 and VS2015. With Feature Packages you have more control over how you build a library as you can specify different options (features). Lots of open source libraries offer different options and features to select at build time. For example, you may want to build OpenCV with CUDA to utilize the GPU or build HDF5 with MSMPI to enable parallel execution. Previously you neede...

Jan 18, 2018
Post comments count 0
Post likes count 0

C++ Core Check in Visual Studio 2017 15.6 Preview 2

Andrew Pardoe

点这里看中文版 This post was written by Sergiy Oryekhov. Note that some of the links to docs.microsoft.com do not yet resolve. Not all of the official documentation has yet been written for this topic. Visual Studio 2017 15.6 Preview 2 includes a set of updates to the C++ Core Guidelines Check extension. We added more checks to help with the effort of making code cleaner, more secure and maintainable. This document is a quick overview of the new rules. More detailed information about these rules as well as an updated list of available rules can be found here: This release also has general improvements in user ...

Jan 17, 2018
Post comments count 0
Post likes count 0

Visual Studio Code C/C++ extension Jan 2018 update

Rong Lu

点这里看中文版 Today we are shipping the first update of the year to the Visual Studio Code C/C++ extension! This update includes IntelliSense and code navigation performance improvements and a CPU Usage setting for the tag parser to specify the CPU resources to be used. Also, just recently we open-sourced part of the extension on GitHub. IntelliSense and code navigation performance improvements We enhanced the tag parser based IntelliSense engine by optimizing the list of files that need to be parsed, resulting in greatly improved performance for any features powered by the tag parser. This includes IntelliSense light...

Jan 16, 2018
Post comments count 0
Post likes count 0

Vcpkg: Introducing the upgrade command

EricMittelette

If you’re just getting started and want to learn more about vcpkg, check out our initial post. We recently added a new option to vcpkg (i.e. vcpkg contact --survey) to provide a direct way to share your feedback with the Vcpkg team. A big thank you to those of you that shared your thoughts and suggestions with the team through this new channel. The new upgrade command we’re introducing today is a result of your direct feedback. This new command will perform all the necessary tasks: removing old version, purging outdated libraries, and then automatically installing the newest version of each library, includi...