Visual Studio Code is an optimized and multifunctional code editor for creating web and cloud computing applications. It was developed by the Microsoft team. It includes features such as built-in git, debugging support, syntax highlighting, intelligent code completion, fragments, and code refactoring.
The Visual Studio code is available free of charge for most modern operating systems such as Windows, Linux (installation of RPM and Debian is also available) and MacOS.
This tutorial will help you install the Visual Studio code on a Linux Ubuntu 18.04 LTS system using the Apt package manager and the Snap package.
Log in to Ubuntu 18.04 with the sudo proviledgted account. Ubuntu Deckstop must be installed on your system.
Step 1 – Install Visual Studio code
The Visual Studio code is available as a snap package and as an official apt repository together with the Debian package. Choose one of the following methods, depending on your choice. The snap tool is not installed in Ubuntu 18.04. That’s why we first provide an installation method with the Debian package.
- 1. Installation with the apt repository
First, import the GPG key into your system to validate the packages before installation. To import a gpg key, enter
curl https://packages.microsoft.com/keys/microsoft.asc | gpg -dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
The Microsoft team provides a repository for installing Debian packages. To enable the Visual Studio apt code repository, enter the type:
echo deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable head | sudo
After successfully adding the repository to the system, execute the following commands to install the Visual Studio code on the Ubuntu system
Update sudo apt
Installation code sudo apt
Press y for any confirmation requested by the installer.
- 2. Installation with tool kit
The information package contains all the requirements for each application. Make sure the Snapd service is installed on your system, or use the following command to install it.
sudo apt install snapd
After the Deamon snpad has been installed on your system terminal, execute the following command on the system terminal:
Installation code sudo snap – Classic
The above command loads the VS Code snap-in and installs it on your system. When the installation is successfully completed, you will see the following result.
Here we go. The Visual Studio Code Snap-in package has been successfully installed on your system.
Step 2 – Starting the Visual Studio Code
Now the Visual Studio code is installed on your Ubuntu 20.04 system. To start an application, enter the code in the search application and press it.
The Visual Studio code editor is ready to use.
This guide will help you install the Visual Studio code on your Ubuntu 18.04 LTS Linux system.