ubuntu 安装 Visual Studio Code
1,Ubuntu 18.04安装Visual Studio Code
- ubuntu 版本
# cat /etc/issue
Ubuntu 18.04.1 LTS \n \l
- 安装存储库和密钥
# apt install -y curl
# curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
# install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
# sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
- 更新并安装
# apt-get install -y apt-transport-https
# apt-get update
# apt-get install -y code
2,运行Code
$ code .
参考: