Windows

To work on the assignments, you need a UNIX-like environment. Luckily, even though Windows is not UNIX-based, the Windows Subsystem for Linux (WSL) allows you to run a Linux distribution in a virtual machine (VM) with minimal setup. You may already know this setup from the Computer Programming course.

If you already have WSL installed, you do not need to install it again. However, make sure to follow all other steps of this guide. Otherwise, the framework might not work as intended.


Step 1: Install VS Code

Download and install Visual Studio Code (VS Code) for Windows and install the WSL Extension.


Step 2: Install WSL

  1. Open PowerShell as administrator.

  2. Enter wsl --install (This step may take a few minutes)

  3. When prompted choose a username and password for the WSL user account.

WSL should now be installed and the PowerShell window will show the command line for the Linux VM. From now on, you can enter this Linux VM by opening the WSL App from within Windows (e.g., by typing "WSL" in the search bar).

Any terminal commands that are mentioned in the following guides should be executed in a WSL terminal - not your Windows command line.


Step 3: Install the Required Packages

The WSL setup is not yet fully done. To install the tools needed for building your assignment programs, run the following command in your WSL terminal:

sudo apt update && sudo apt install clang make git

and confirm any prompts that might appear.


Step 4: Set up SSH with GitHub

One of the easiest ways to access your GitHub account (and with that your private repository) from within WSL is to set up a Secure Shell (SSH) key. Follow the GitHub SSH Setup Guide for this. Make sure to execute all commands from within your WSL terminal!


Step 5: Open VS Code from WSL

After you have set up SSH with GitHub and cloned your repository:

  1. Navigate to the newly created folder (cd <repo_name>)

  2. Enter code .

  3. A message should appear that the VS Code Server is getting installed/updated and after the process finishes, a VS Code window should open to the root folder of the framework.

If the blue box does not show "WSL" something went wrong in the previous steps.

Last updated