programming4biologists

Everything you need to get started for the course "Programming in C++ for Biologists".

View the Project on GitHub rugtres/programming4biologists

Getting Started

Visual Studio Code (VSCode for short) is an advanced text editor that is cross-platform. It works on Windows, Mac, or Linux OS. We will use VSCode to learn C++, so buckle up and let’s get started! Follow the instructions below to install VSCode on your computer before the start of the course, be it Windows, Mac or Linux.

Done installing? Congratulations, you’re all set! Head to our further instructions for Using Visual Studio Code to learn more on how to use VSCode and CMake for C++.

Windows OS

Launch Visual Studio Code (Windows)

run vscode

open folder

choose compiler

Mac OS

Access the shared folder and download cpp4pio_linux_mac_2023.zip. Extract the archive to your home folder.

Install homebrew

Open a terminal and run:

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

Next, while still in the terminal, run:

cd ~/cpp4bio_linux_mac_2023
chmod +x ./bootstrap-brew.sh
./bootstrap-brew.sh

Linux OS

Access the shared folder and download cpp4pio_linux_mac_2023.zip. Extract the archive to your home folder.

Open a terminal and run:

cd ~/cpp4bio_linux_max_2023
chmod +x ./bootstrap-*

# if your package manager is 'apt' (Debian, Ubuntu, Mint) run:
./bootstrap-apt.sh

# else if your package manager is 'dnf' (Fedora, Red Hat) run:
./bootstrap-dnf.sh

# else if your package manager is 'pacman' (Arch, Manjaro) run:
./bootstrap-pacman.sh

Launch Visual Studio Code (Mac, Linux)

An most platforms, you should find Code or Visual Studio Code as application. Open it the “usual” way.

Alternatively, open a terminal and run:

code .

Inside Visual Studio Code

open folder

choose compiler

It might be that upon opening Visual Studio Code, some of the installed extensions are disabled. This is because you are using VS code in restricted mode. Just click on Trust, and you’re good to go!

Home