Back to Setup

Ubuntu Vscode

_partials/ubuntu_vscode.md

latest1.2 KB
Original Source

Visual Studio Code

Installation

Let's install Visual Studio Code text editor.

Copy (Ctrl + C) the commands below then paste them in your terminal (Ctrl + Shift + v):

bash
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
bash
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
bash
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
bash
rm -f packages.microsoft.gpg
bash
sudo apt update
bash
sudo apt install -y code

These commands will ask for your password: type it in.

:warning: When you type your password, nothing will show up on the screen, that's normal. This is a security feature to mask not only your password as a whole but also its length. Just type in your password and when you're done, press Enter.

Launching from the terminal

Now let's launch VS Code from the terminal:

bash
code

:heavy_check_mark: If a VS Code window has just opened, you're good to go :+1:

:x: Otherwise, please contact a teacher