1. 添加软件包索引
sudo apt update
sudo apt install software-properties-common apt-transport-https wget
2. 配置Microsoft 相关key和VS源
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. 安装Visual Studio Code
sudo apt install code