sudo apt update
sudo apt install software-properties-common apt-transport-https wget
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"
sudo apt update
sudo apt install code -y
code #运行vscode
参考链接: https://linuxize.com/post/how-to-install-visual-studio-code-on-ubuntu-18-04/
已验证
离线
谢谢楼主分享,一步到位,成功了!
离线
snap安装即可
离线