Update the packages index and install the dependencies:

sudo apt update
sudo apt install gnupg2 software-properties-common apt-transport-https curl

Import the Microsoft GPG key:

curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

Add the Visual Studio Code repository:

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

Install the Visual Studio Code package:

sudo apt update
sudo apt install code

That’s it. Enjoy

Next Post Previous Post