How to Install Visual Studio Code on Ubuntu 20.04

Microsoft Visual Studio is an IDE made by Microsoft and used for different types of software development such as computer programs, websites, web apps, web services, and mobile apps. It contains completion tools, compilers, and other features to facilitate the software development process.

In this tutorial, i am going to show you how to install visual studio code text editor on Ubuntu 20.04 using terminal or command prompt.

How to Install Visual Studio Code Text Editor in Ubuntu 20.04/22.04

Follow the below given instructions for install visual studio code text editor in ubuntu using terminal or command prompt:

  • Step 1 – Open Terminal OR Command Prompt
  • Step 2 – Update APT Package
  • Step 3 – Enable the Apt repository
  • Step 4 – Installing Visual Code Studio

Step 1 – Open Terminal OR Command Prompt

First of all, Open terminal or command prompt by pressing Ctrl+Alt+T key:

Step 2 – Update APT Package

Then execute the following command on command prompt or terminal to update Apt package list:

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

Step 3 – Enable the Apt repository

And execute the following command on command prompt or terminal to Import the repository GPG key and enable the Apt repository :

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"

Step 4 – Installing Visual Code Studio

Execute the following command on command prompt or terminal to install the latest version of Visual Studio Code:

sudo apt install code

Note that, The easiest way is to install visual code studio on Ubuntu 20.04.

Conclusion

In this tutorial, i have shown you how to install visual studio code text editor on Ubuntu 20.04 using terminal or command prompt.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *