How to Install Visual Studio Code on Ubuntu 18.04


2 min read


The easiest and recommended way to install Visual Studio Code on Ubuntu machines is to enable the VS Code repository and install the VS Code package through the command line.

Although this tutorial is written for Ubuntu 18.04 the same steps can be used for Ubuntu 16.04.



Installing Visual Studio Code on Ubuntu

To install Visual Studio Code on your Ubuntu system, follow these steps:

  1. First, update the packages index and install the dependencies by typing:

  2. Next, import the Microsoft GPG key using the following wget command:


    And enable the Visual Studio Code repository by typing:

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

    sudo apt updatesudo apt install code

That’s it. Visual Studio Code has been installed on your Ubuntu desktop and you can start using it.

Starting Visual Studio Code

Now that VS Code is installed on your Ubuntu system you can launch it either from the command line by typing code or by clicking on the VS Code icon (Activities -> Visual Studio Code).

When you start VS Code for the first time, a window like the following should appear:


Updating Visual Studio Code

When a new version is released you can update the Visual Studio Code package through your desktop standard Software Update tool or by running the following commands in your terminal:

sudo apt updatesudo apt upgrade


You have successfully installed VS Code on your Ubuntu 18.04 machine. Your next step could be to install Additional Components and customize your User and Workspace Settings.

To learn more about VS Code visit their official documentation page.

If you have any questions, please leave a comment below.