C++ Team Blog
The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team
Latest posts
Visual Studio Code C/C++ extension July 2017 Update – time to try out the new IntelliSense!
2 million downloads! This is very exciting for the Visual Studio Code C/C++ extension, considering it was just 4 months ago when we hit the 1 million milestone! Today we are shipping the July 2017 update to the extension. Besides several bug fixes, we are continuing to polish the new IntelliSense experience that we shipped last month. This new experience continues to be on by default for VS Code Insiders and off for everyone else, but we encourage everyone to try out the new, improved IntelliSense! You will get improved, more accurate results for several IntelliSense features, including auto-complete suggestions...
Precompiled Header (PCH) issues and recommendations
This post written by Mark Hall, Xiang Fan, Yuriy Solodkyy, Bat-Ulzii Luvsanbat, and Andrew Pardoe. Precompiled headers can reduce your compilation times significantly. They’ve worked reliably for millions of developers since they were introduced 25 years ago to speed up builds of MFC apps. Precompiled headers are widely used: they are enabled by default for new Visual C++ projects created in the IDE and similarly provide substantial performance wins in our intellisense architecture. How do precompiled headers speed up your build? For a given project, most source files share a common set of header files (esp...
Microsoft Visual Studio 2017 Supports Intel® AVX-512
For this post we welcome John Morgan from Intel Corporation as guest author on the Visual Studio Blog. John has been with Intel for nine years, but his contributions to the Microsoft compiler stretch back through two decades and three other companies. He gratefully acknowledges help with this post from others at Intel and Microsoft. This post explores Intel® Advanced Vector Extensions 512 (Intel AVX-512), and how they are supported in Microsoft Visual Studio 2017, particularly in Microsoft Visual C++, Microsoft Macro Assembler (MASM), and the Microsoft Visual Studio IDE debugger, along with typical applications ...
June C++ Link Roundup
C++ link roundup for June: If you have links for next month's collection, please share in the comments. Thank you.
Security Features in MSVC
Shareable link: https://aka.ms/msvcsecurity 点这里看中文版 Every developer makes mistakes. No matter how careful you are when writing code, you will introduce bugs. And any bug can become a security vulnerability when software that runs in a connected environment or is used long past its initially planned lifespan. Code that isn't correct is insecure code. The Microsoft Visual C++ toolset offers numerous features that help you write secure, correct code from before you start typing code until after you’ve shipped it to your users. For more information on specific security features in the MSVC toolset, make sure you r...
Visual Studio Code C/C++ extension June 2017 Update
Today we are excited to announce the release of the June 2017 update of the C/C++ extension for Visual Studio Code. This update enables semantic-aware member list auto-completion and improves the overall default IntelliSense behavior, providing a smoother out-of-box IntelliSense experience. If you haven't tried it before, download VS Code (Stable build) or VS Code Insiders. Then download the C/C++ extension for Visual Studio Code to try it out. If you have this extension installed already, VS Code will notify you of the update and install it automatically. The original blog post, which provides an overview of...
C++ Tutorial: Debugging Overview
Welcome to the C++ Tutorial series. In this article, we explore debugging concepts and do some hands-on debugging with Visual Studio 2017. One of the most useful features of an IDE is the debugger. Under a debugger, you can step through code as it is running, examining the values of variables, structures, program flow, screen output, and other elements of the application for errors. It is slower than running the program outside of the debugger, but vital to understanding the inner workings of an application. When Debugging Helps Even the best developers make mistakes. That is why the best developers know their ...
C++ Tutorial: Hello World
Welcome to the C++ Tutorial. In this first C++ tutorial, you will learn how to write (and run!) your first C++ program, “Hello, World!”. Along the way you will learn a little C++ history, see how to configure a C++ console application in Visual Studio 2017, walk through code structure, and see how code is built. Acknowledgements This tutorial series is a remix of C++: A General Purpose Language and Library Jump Start, an all-day course presented by Kate Gregory and James McNellis and hosted on Microsoft Virtual Academy and the evolution of that content as beginner and intermediate courses on EdX by Gerry O’B...
CMake support in Visual Studio – what’s new in 2017 15.3 Preview 2
We're excited to announce improved CMake and Ninja support in Visual Studio 15.3 Preview 2. In this preview, we have updated CMake from version 3.7.2 to version 3.8 and added improved support for the CMake Ninja generator. Additionally, this preview includes several fixes for community reported bugs. Please download the preview 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. CMake Tools Upgraded to use CMake 3.8 We are trying to keep the version of CMake that is incl...