Skip to content

Install VS Code on UbuntuΒΆ

First, update the packages index and install the dependencies by typing:ΒΆ

Bash
sudo apt update
sudo apt install software-properties-common apt-transport-https wget

Next, import the Microsoft GPG key using the following wget command:ΒΆ

Bash
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -

And enable the Visual Studio Code repository by typing:

Bash
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"

Once the apt repository is enabled, install the latest version of Visual Studio Code with:ΒΆ

Bash
sudo apt update
sudo apt install code

Starting VS CodeΒΆ

Bash
code .