Skip to content

3. VSCode & extensions

Yaniv Carmel edited this page Apr 4, 2022 · 28 revisions

In this section, you'll install and configure Visual Studio Code (VSCode), an open-source IDE we love :)


  1. Download & install Visual Studio Code.
  2. Go to Extensions (Ctrl+Shift+X) and install "Remote-WSL". Wait for it to complete.
  3. Open the Command Palette (Ctrl+Shift+P). This is a useful shortcut that provides access to many VSCode commands. Type and choose "Remote-WSL: New WSL Windows". Wait for it to complete (make sure it says "WSL: Ubuntu" at the bottom-left of the window).
  4. Go to Extensions (Ctrl+Shift+X) and install "C/C++ Extension Pack". Wait for it to complete.
  5. Open the Terminal (Ctrl+`) and run these commands. Put the email you signed up to GitHub with.
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
  1. Go to Source Control (Ctrl+Shift+G), and choose "Clone Repository", and then "Clone from GitHub". Sign in.
  2. Open the Command Palette (Ctrl+Shift+P), type "Clone from GitHub", then copy and paste your repository link from GitHub, as shown in the image.

  1. You'll be asked where you'd like to clone your repository to. Choose /home/<your username>. Open your project folder in VSCode.

Now that you have cloned the repository, let's practice making another contribution to the project, this time using VSCode.

If your project isn't already open, open it (File -> Open Folder).

  1. Install another extension: "Clang-Format". This extension will allow you to completely forget about formatting (indentation, blank lines, ...). Instead, you'll create a file specifying your desired conventions, and the code will be reformatted on every save.
  2. Download .clang-format and put it in your project directory.
  3. Upload those files. You can do it all from VSCode, using the Source Control window (Ctrl+Shift+G).

  1. Check out other recommended extensions: "Python", "Clang-Tidy", "GitLens".

Clone this wiki locally