How to install Visual Studio code on Ubuntu 18.04

s2 0

Visual Studio Code
is an open source cross-platform code editor developed by Microsoft. It has built-in debugging support, embedded Git control, syntax highlighting, code completion, built-in terminal, code refactoring, and snippets.

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

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

requirements

Before proceeding with this tutorial, make sure that you are logged in as a user with sudo permissions.

Install Visual Studio Code on Ubuntu

To install Visual Studio Code on your Ubuntu system, do the following:

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

    sudo apt updatesudo apt install software-properties-common apt-transport-https wget
  2. Next, import the Microsoft GPG key using the following wget command:

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

    And enable the Visual Studio Code repository by typing:

    sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
  3. Once the apt repository is enabled, install the latest version of Visual Studio Code using:

    sudo apt updatesudo apt install code

That’s it. Visual Studio Code has been installed on your Ubuntu desktop and you are ready to use it.

Start Visual Studio Code

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

The first time you start VS Code you should see a window like the following:

You are now ready to begin installing extensions and configuring VS Code the way you want.

Update Visual Studio Code

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

sudo apt updatesudo apt upgrade

diploma

You have successfully installed VS Code on your Ubuntu 18.04 computer. Your next step could be the installation Additional components
and customize yours User and workspace settings
.

To learn more about VS Code, visit the official one documentation
Page.

If you have any questions please leave a comment below.