要在Ubuntu上安装VSCode编辑器,请按照以下步骤操作:
打开终端(Ctrl + Alt + T)。
运行以下命令来下载并安装VSCode的GPG密钥:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update
sudo apt install code
现在您已经成功在Ubuntu上安装了VSCode编辑器。祝您使用愉快!