How to Install Visual Studio Code on Ubuntu 22.04

In this tutorial guide, i am going to show you easiest ways of installing visual studio code text editor on Ubuntu 22.04.

How to Install Visual Studio Code Text Editor in Ubuntu 22.04

Use the below given steps to install visual studio code text editor in ubuntu using terminal or command prompt:

  • Step 1 – Start Terminal
  • Step 2 – Update APT Package
  • Step 3 – Enable the Apt repository
  • Step 4 – Installing Visual Code Studio

Step 1 – Start Terminal

Start terminal by pressing Ctrl+Alt+T key:

Step 2 – Update APT Package

Run the following command on 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

Run the following command on 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

Run the following command on 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 22.04.

Conclusion

In this tutorial guide, i have shown to you easiest ways of installing visual studio code text editor on Ubuntu 22.04.

More Tutorials

Leave a Comment