Build Time Improvement Recommendation: Turn off /MAP, use PDBs

Map file is a plaintext file that contains information about where certain names and symbols exist in a binary produced by the linker. It also contain detailed information on all sections in your binary (code, data, etc.) and which OBJ/LIB each symbol is defined in. The Windows debuggers (like windbg.exe) can use map files to help locate where a program crashed… Read more

ClangFormat Support in Visual Studio 2017

⏱ Updated on March 14, 2018 to talk about which version of clang-format.exe we ship in the product. 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… Read more

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

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… Read more

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

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… Read more

Arithmetic overflow checks in C++ Core Check

点这里看中文版 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… Read more

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

点这里看中文版 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… Read more

Vcpkg: introducing installation options with Feature Packages

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… Read more

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

点这里看中文版 This post was written by Sergiy Oryekhov. Note that some of the links to 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… Read more

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

点这里看中文版 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…. Read more

Vcpkg: Introducing the upgrade command

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… Read more