
Now, Visual Studio Code is ready to debug.Īlthough CMake is easier to use than GNU Make, GNU Make is used by many people.

In Debian and Ubuntu, use dpkg command to install Visual Studio Code.įind_package(Boost REQUIRED COMPONENTS unit_test_framework) Then, install the downloaded package based on Linux distribution. Second, choose an appropriate Visual Studio Code package to download. The Quick Start is based on the following environment:įirst, go to. This Quick Start uses a simple C++ example to demonstrate how to configure Visual Studio Code. The Quick Start includes use Visual Studio Code to build C++ code with CMake and Make, and use Visual Studio Code to debug C++ code in real time. This Quick Start aims to provide step by step guideline for C++ programmers who want to spend as little effort as possible to use Visual Studio Code in Linux environment. Therefore, the purpose of this article is to help C++ programmers, like me, who want to use Visual Studio Code for C++ programming in Linux. It took me quite a lot of time to figure out how to configure Visual Studio Code to work with C++ in Linux. However, most of these documents are written for the general purpose of Visual Studio Code. Microsoft has posted a lot of fantastic documents of Visual Studio Code. It supports several programming languages and many features to help programmers.

Visual Studio Code is a lightweight and cross-platform version of Visual Studio. Now I finally found one, Visual Studio Code, released by Microsoft. However, I was still looking for a good tool to code in Linux environment. In Windows environment, Visual Studio is always my favorite tool. I have used many IDEs and editors to write the code for many years such as Visual Studio, VIM, Eclipse, NetBeans, Notepad++. As a software engineer, a great editor or IDE helps improve productivity.
