Skip to content

Instantly share code, notes, and snippets.

@lihongjie0209
Created July 26, 2017 13:04
Show Gist options
  • Save lihongjie0209/0d18e272e7076d364abfdbaa46f77b6f to your computer and use it in GitHub Desktop.
Save lihongjie0209/0d18e272e7076d364abfdbaa46f77b6f to your computer and use it in GitHub Desktop.
vscode 自动安装脚本
# VSCode 自动安装脚本, 适用于CentOS
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
yum check-update
sudo yum install code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment