Ubuntu 20.04 使用 apt 安装 vscode
Installing Visual Studio Code with apt
1.用管理员权限更新包与安装必要的文件
sudo apt update
sudo apt install software-properties-common apt-transport-https wget
2.导入Microsoft GPG Key
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
3.安装 VS Code
sudo apt install code
4.更新
sudo apt update
sudo apt upgrade