1、导入微软的GPG密钥:
1 2 |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg |
2、增加Visual Studio Code的软件源:
1 |
echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" | sudo tee /etc/apt/sources.list.d/vscode.list |
3、更新软件列表并安装Visual Studio Code:
1 2 |
sudo apt-get update sudo apt-get install code |
经过以上步骤,即可在开始菜单中找到VisualStudio Code