← Back to 25T3

VSCode Setup

How to install and set up VSCode for MTRN2500.


Installation

Windows

  1. If you’re on Windows, follow this guide to install both VSCode and WSL: https://code.visualstudio.com/docs/remote/wsl.

    WSL will allow us to use the Linux environment on Windows without requiring a virtual machine or dual booting. In our case, we need to use a C++ compiler and Git.

  2. Check that a C++ compiler is installed by entering this command into the Windows Terminal:

    g++ --version

macOS

Install From Publishers

  1. If you’re on macOS, you can follow this guide to install VSCode: https://code.visualstudio.com/docs/setup/mac.

  2. You will also need to install Xcode from the App Store to install a C++ compiler and Git.

  3. Check that a C++ compiler is installed by entering this command into the terminal:

    clang++ --version

Install with CLI

Alternatively, you can use the CLI to install VSCode and Xcode.

  1. Make sure you have Xcode installed first:

    xcode-select --install
  2. Install Homebrew:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  3. Then install VSCode:

    brew install --cask visual-studio-code
  4. Check that a C++ compiler is installed by entering this command into the Windows Terminal:

    clang++ --version

VSCode

For this course, we will be using VSCode as our primary text editor.

VSCode GUI

Using a Terminal

You can open a terminal in VSCode by clicking Terminal > New Terminal from the navigation bar or with this shortcut: ctrl + `.

VSCode will open any terminal that is available on your OS.

Git

Read more on how to use Git in VSCode.

Extensions

We recommend installing these extensions: