Ubuntu添加vscode源
-
添加apt源到/etc/apt/sources.list文件
$ sudo echo "deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main" >> /etc/apt/sources.list
-
添加gpg公钥
$ sudo curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg