首先去特硬去下載vscode的安裝包
mkdir /tmp/vscode
cd /tmp/vscode/
wget https://az764295.vo.msecnd.net/public/0.3.0/VSCode-linux-x64.zip
解壓安裝包
unzip /tmp/vscode/VSCode-linux-x64.zip -d /opt/
此時就可以正常運行VSCode了
sudo chmod +x /opt/VSCode-linux-x64/Code
sudo /opt/VSCode-linux-x64/Code
加入系統(tǒng)環(huán)境中
ln -s /opt/VSCode-linux-x64/Code /usr/local/bin/code
code
創(chuàng)建啟動icon
自己寫一個desktop文件
touch /tmp/vscode/visualstudiocode.desktop
vi /tmp/vscode/visualstudiocode.desktop
然后拷貝如下內(nèi)容
[Desktop Entry]
Name=Visual Studio Code
Comment=Multi-platform code editor for Linux
Exec=/opt/VSCode-linux-x64/Code
Icon=/usr/share/icons/vso.png
Type=Application
StartupNotify=true
Categories=TextEditor;Development;Utility;
MimeType=text/plain;
再將快捷方式拷貝到系統(tǒng)的目錄中
cp /tmp/vscode/visualstudiocode.desktop /usr/share/applications/
之后就可以愉快的玩耍了