In this opportunity, we are going to teach you how to install Visual Studio Code on Ubuntu 20.04, this is both an open source and free editor, it is actually developed by Microsoft, but it is currently available for Linux and Mac as well. 

Installation as a Snap package

This package is distributed and maintained by Microsoft. When we refer to Snaps, you should know that these are stand-alone software packages which include the binary of all those necessary dependencies, so that this application can run, the advantage that Snap packages have is that they are easy to update and are very secure.

All these Ubuntu packages can be installed from the command line or also using the Ubuntu software application. If you want to install VS Code, You just have to open a terminal (Ctrl+Alt+T) and after this you have to run the following command:

  • sudo snap install --classic code

After running the above command, Visual Studio Code it should be installed in one go on your system and after this, you will be able to use Visual Studio Code on Ubuntu 20.04. If you are interested in using the installation GUI, the next thing you should do is open the Ubuntu software option and then search for Visual Studio Code´ and then install this app.

Whenever a new version is released, this package will be updated automatically and that will take place in the background.

Installation as .deb package using apt

This program is also available in all that would be the official Microsoft repositories. To carry out this installation, you just have to do the following:

  • Initially, you should update package index and also install all the necessary dependencies and this is accomplished by running the command below in a terminal (Ctrl+Alt+T).
install Virtual Studio Code dependencies

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

  • After this, what you have to do is import a CPG key from Microsoft using this wget:

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

  • At this point, the VS Code repository can now be enabled and you must type the following in the same terminal:

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

  • The enablement of the apt repository starts, you can immediately start the installation of the package and to do this, you must type the following:

sudo apt install code

VS Code installation with apt

Every time one of these applications is released, there may be an update to Visual Studio Code on Ubuntu 20.04 or any other version. This is done through the software update tool of standard type on your desktop, you can also carry out the update if you execute the following commands that are in the terminal (Ctrl+Alt+T):

  • sudo apt update; sudo apt upgrade

In this way, you will be able to keep your program updated and with the steps that we have explained in previous points, you can install this program on your system.

By Manuel Garrido

Graduated in Computer Science, passionate about writing and technology. In Digital Guides I am going to offer you the best tutorials of the tools that I master the most, as well as recommendations of apps and programs that will surely interest you.