< >
Home » Ubuntu系统入门教程 » Ubuntu系统入门教程-安装VSCode

Ubuntu系统入门教程-安装VSCode

说明

  • 本教程介绍如何在Ubuntu安装VSCode

  • 测试环境:Ubuntu 20.04

脚本自动安装步骤:

  • 使用RCM简化版一键安装
rm install_simple.sh ; wget https://gitee.com/ncnynl/commands/raw/master/install_simple.sh ; sudo chmod +x ./install_simple.sh; sudo ./install_simple.sh common install_vscode ; rm install_simple.sh

分步安装操作步骤

  • 添加存储库和密钥
$ sudo apt-get install wget gpg
$ wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
$ sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
$ sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
$ rm -f packages.microsoft.gpg
  • 更新包列表,同时安装VSCode
$ sudo apt install apt-transport-https
$ sudo apt update
$ sudo apt install code
  • 启动VSCode
$ code

参考资料

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: ubuntu系统入门教程