Ubuntu 22.04 install vscode

To install vscode on Ubuntu 22.04, please complete these steps.
First, use the apt command to update the software package index and install dependent software that imports Microsoft GPG keys.

Update, if it has been executed recently, it can be ignored.

sudo apt update

Installation kit

sudo apt install software-properties-common apt-transport-https curl

After importing GPG, run the curl command to import the Microsoft GPG key.

curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

The execution results are as follows:
Insert image description here

Run the add-apt-repository command to add the vscode software repository to the Ubuntu 22.04 software repository list.

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

Finally, run the apt command to install the latest version of vscode.

sudo apt update
sudo apt install code

Start the installation as shown in the figure
Insert image description here
Wait for the installation to complete and enter the code

code

The editor page of vccode will pop up.
Insert image description here

At this point, vscode has been installed on your Ubuntu 22.04 and you can start using it

Guess you like

Origin blog.csdn.net/hai411741962/article/details/134573331
Recommended