Everything you need to get started for the course "Programming in C++ for Biologists".
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++.
cpp4pio_2023.zip
.cpp4bio_2023.zip
archive and move the containing folder cpp4bio
to your Desktop. This will take some time!cpp4bio/vscode/
and open (double-click) Code.exe
.Open folder
.cpp4bio/projects/hello_world/
.Clang++ cpp4bio
.main.cpp
and press the LaunchHello world!
to the console.Access the shared folder and download cpp4pio_linux_mac_2023.zip
.
Extract the archive to your home folder.
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
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
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
.home/cpp4bio/projects/hello_world/
.Clang++ cpp4bio
.main.cpp
and press the Launch(lldb) launch
. Both these steps should compile and print Hello world!
to the console.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!