How to Install Visual Studio Code on Ubuntu 22.04 Terminal?

Jun 24, 2022 . Admin

Hi Guys,

Hello all! In this article, we will talk about Install Visual Studio Code Text Editor in Ubuntu System Using Command Prompt. if you have question about Install Visual Studio Code on Ubuntu then I will give simple example with solution. Here you will learn Run Visual Studio Code in Ubuntu Terminal. This article will give you simple example of Can I install Visual Studio on Ubuntu?.

You can use this post for ubuntu 14.04, ubuntu 16.04, ubuntu 18.4, ubuntu 20.04, ubuntu 21 and ubuntu 22.04 versions.

Step 1: Open Terminal OR Command Prompt

Open Your terminal or command prompt by pressing Ctrl + Alt + T:

Step 2: Update APT Package

Run the following command to update the Apt package list:

sudo apt-get update
sudo apt install software-properties-common apt-transport-https wget
Step 3: Enable the Apt repository

To import the repository GPG key, run the following command on your terminal and enable the Apt repository:

wget -q -O- | sudo apt-key add -

And Enable Visual Studio Code Repository:

sudo add-apt-repository "deb [arch=amd64] stable main"
Step 4: Installing Visual Code Studio

Run the following command to install the latest version of Visual Studio Code:

sudo apt install code