zl程序教程

您现在的位置是:首页 >  工具

当前栏目

ubuntu 安装 Visual Studio Code

2023-09-14 09:09:52 时间

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 .

在这里插入图片描述
参考:

  1. Visual Studio Code on Linux