適用於ubuntu16.04以上版本(大概
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make sudo apt-get update sudo apt-get install ubuntu-make sudo umake web visual-studio-code
以上步驟如果安裝失敗,則
1.更新安裝包
sudo apt update sudo apt install software-properties-common apt-transport-https wget
2. 使用以下 wget命令導入Microsoft GPG密鑰:
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
3.並通過鍵入以下內容啟用Visual Studio代碼存儲庫:
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
4.一旦啟用 apt儲存庫,請使用以下方式安裝最新版本的Visual Studio Code:
sudo apt update sudo apt install code