

Configure Visual Studio Code so that we can control our builds and tests directly from the editor, and have autocompletion for dependencies installed via vcpkg.Use CMake to manage our builds and run our tests.Setup and use vcpkg to download, build, and install open source dependencies such as catch2 (for our tests), and fmt (for our code).Tools popularity can vary quite a lot from years to years, for example solutions to manage dependencies are still competing against each other and new ones are popping all the time, so I want to be clear that this document is my setup in 2020, hopefully it will stay evergreen in the future, but I wouldn't bet too much on it. At the end of this guide we will be able to build and run tests in just one click (or command line if that's your thing). Because so much choices can be daunting for people who just want to start with the language, and because I know I will forget how things work, in this article I will document what I've done to get to a fully working environment that answers all my questions in a simple and coherent way. The C++ world is way more fragmented, there is a lot of choices of build and meta build tools, various test frameworks (each with its own test runner), lot of way to manage dependencies, etc. But of course in the case of C++, things are. , go get, install the official Go extension for your editor. Some languages such as Go come with simple answers to these questions: go build. How do I integrate all of this in my text editor?.If you want to change the language of Visual Studio, choose Language packs > select language you want, then follow the prompts.When I start to use a programming language I always have the following questions: When running for the first time, the installer program will match the language of your OS. You can install and add individual components that you need, and follow the prompts. There’s a case when you want to add more components than what is available in workload installs list, you can do so by using the Individual components tab.



You can see that it has other workloads support other kinds of development, like the Universal Windows Platform development, Mobile development with C++, etc.Īfter you choose the workload(s) and optional components you want, choose Install.īefore that, there are some optional installation you can set up: Choose individual components (Optional) You can select or deselect optional components in this list. It will show you details on the right side of screen. For core C and C++ support, choose Workloads menu > Desktop development with C++ (the third one).
