1. sudo vim /etc/apt/sources.list.d/vscode.list 并向里面添加:deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main
2. curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
3. sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
4. sudo apt-get update
5. sudo apt-get install code
6. run code