How to Install Visual Studio Code in Ubuntu

Visual Studio is one of the most used tools for building and debugging modern web and cloud applications. Earlier this year Microsoft released Visual Studio Code.

Visual Studio Code has been built using a mix of web-based and open-source technologies, like Chromium and GitHub’s Electron app framework, and Microsoft’s own Monaco editor. Microsoft released this for free, and it released it for desktop Linux and Mac.

The best thing about VS Code, it is Open Source. This means Linux distributions will be free to package it up and distribute it in their package managers, too. Microsoft open-sourced much of the .NET server code earlier this year.

Visual Studio Code supports full syntax coloring and highlighting, bracket matching and lining, plus keyboard bindings and snippets.

It also provides Github integration, similar to that found in Google’s Chrome Dev Editor, and IntelliSense support powered by open-source projects for faster working (e.g., typo correction, auto-completion, etc)

How To Install

There are two ways to install Microsoft Visual Studio Code:

  1. Downloading the package from the official website and then installing the package
  2. Using Ubuntu Make to download and install Visual Studio Code

Let’s start with the first way.

Download from the official website

Firstly download the package from its official website.

Then unzip the package you just downloaded.

unzip VSCode-linux-x64.zip

Now move to the extracted directory by running the following command:

cd VSCode-linux-x64

Then run the following command to start/run the editor.

./Code

Use Ubuntu Make to download and install VS Code

Run the following code step by step in the terminal to download and install Ubuntu Make:


sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make

Only after installing Ubuntu Make, you can install Visual Studio Code through Ubuntu Make.

umake web visual-studio-code

Visual Studio Code Linux

Check this video to learn more about Visual Studio Code.