对于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命令安装
- yum check-update
- sudo yum install code
完成后,就可以用vscode了
时间: 2024-10-05 20:07:43