1、在官網(https://code.visualstudio.com/)下載.deb軟件包;
2、按照https://code.visualstudio.com/docs/setup/linux進行安裝:
(1)
sudo dpkg -i <file>.deb
如果出現:dpkg status database is locked by anthor pross 則需要重啓計算機或者重新打開終端輸入:
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
然後繼續輸入命令(1)。
(2)
sudo apt-get install -f # Install dependencies