(Last Updated On: January 26, 2019)

Question: How to Install Visual Studio Code on Ubuntu 18.04 / Linux Mint 19?. This guide will help with the installation of Visual Studio Code on Ubuntu 18.04 / Linux Mint 19. Visual Studio Code is a popular code editor redefined and optimized for building and debugging modern web and cloud applications.

Visual Studio Code is available on the apt repository for installing on Ubuntu 18.04 / Linux Mint 19. You just need to add the repository and install the package.

Step 1: Add Visual Studio Code repository and key:

Download and install repository and GPG key.

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

Install Visual Studio Code on Ubuntu 18.04 / Linux Mint 19

Next step is to update apt index and install Visual Studio Code on Ubuntu 18.04 / Linux Mint 19:

sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get install code

Launch Visual Studio Code on Ubuntu 18.04 / Linux Mint 19 and enjoying your new Development experience.

Also check:

Installing Atom Text Editor on Ubuntu 18.04 / Linux Mint 19