If Clang isn't installed, enter the following command to install the command line developer tools:.To verify that it is, open a macOS Terminal window and enter the following command: clang -version You can install the C/C++ extension by searching for 'c++' in the Extensions view ( ⇧⌘X (Windows, Linux Ctrl+Shift+X)).Ĭlang may already be installed on your Mac.
To successfully complete this tutorial, you must do the following: If you have any trouble, feel free to file an issue for this tutorial in the VS Code documentation repository. For those subjects, there are many good resources available on the Web. This tutorial does not teach you about Clang or the C++ language. In this tutorial, you configure Visual Studio Code on macOS to use the Clang/LLVM compiler and debugger.Īfter configuring VS Code, you will compile and debug a simple C++ program in VS Code.