If you lot are a programmer, chances are you might already be familiar with the nuances and capabilities of Visual Studio Lawmaking.

In this guide, you lot will learn how to install VS Code on Ubuntu and its related distros. For those who might exist wondering what Visual Studio Code is all about, hither's a small clue into its build features.

What Is Visual Studio Code?

Microsoft Visual Studio Code, as the name suggests, is an open-source code editor powered past Microsoft. It offers plenty of debugging options to the finish-users, including embedded Git control, along with syntax highlighting, code completion, code refactoring, an integrated terminal, and snippets.

Visual Studio Code, as a platform, syncs well with Windows, macOS, and even Linux.

There are three prominent means to install Visual Studio Lawmaking on Ubuntu. The first method is to install it from the terminal, using the snap packet. The second way is to use APT along with the package repository provided past Microsoft. These repositories cater to Linux users specifically.

In the third method, you simply utilize the desktop's GUI to install the software on your system.

one. Installing the VS Code Snap Package

The snap packet for Visual Studio Code within Linux is solely maintained and updated by Microsoft. This way, you will always be certain of getting one of the all-time quality software for yourself.

As a requisite, you can install snaps either from the control line or via Ubuntu Software.

To install the Visual Studio Code snap parcel, open up the terminal and type the following command to kickstart the installation process:

          sudo snap install --classic code        

This is it; in one case the installation is complete, you can open Visual Studio Code from the final or the Applications menu.

2. Installing VS Code Using APT

Alternatively, yous can install Visual Studio Lawmaking using Microsoft's repository and the default package manager on Ubuntu, which is APT.

Outset of all, update all the packages on your system using the following commands:

          sudo apt update
sudo apt upgrade -y

Ability users tin also issue this code in 1 single line:

          sudo apt update && sudo apt upgrade -y        

Once you have updated and upgraded the packages, information technology is time to install the necessary dependencies for the repository. Type the following control in your terminal:

          sudo apt install software-properties-common apt-transport-https wget        

Then, utilize wget to import Microsoft'southward GPG key:

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

To enable the VS Lawmaking repository, result the following control:

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

As soon every bit the repository is enabled, all you accept to exercise is install the software bundle:

          sudo apt install lawmaking        

To update your existing VS Lawmaking version to the newest available version, run the update/upgrade commands in this manner:

          sudo apt update && sudo apt upgrade -y        

This will recognize the newest versions bachelor and update your existing version set up as per the latest release.

3. Installing Visual Studio Code Using the GUI

You lot can also install Microsoft Visual Studio Lawmaking from your desktop'south GUI. If you are not a fan of the terminal, using the GUI for installing the packet is your next best option.

To install Visual Studio Code, launch the Ubuntu Software app from the Applications card. Search for Code and select the first consequence. Then, click on Install.

One time the installation is complete, you can open Visual Studio Code from the concluding or directly from the Applications card.

Using VS Lawmaking for the Outset Time

Mail service-installation, equally before long as yous open VS Code on your Ubuntu machine, yous would exist greeted with the following screen:

If everything looks in order, yous can install the extensions and configure the editor as per your preferences.

Writing Code With Visual Studio Code in Ubuntu

Installing Visual Studio Code on Ubuntu is a rather simple process. Given the various ways of installing packages, you can option and choose a process at your convenience, so that you are able to download the software and employ it whenever you want.

Visual Studio Code isn't the but lawmaking editor available to you every bit a Linux user. Y'all can exam other editors and notice which ane suits you the best.

The nine Best Costless Code Editors for Writing Your Showtime App

Read Next

About The Writer