Linux系统版本
Ubuntu 16.04 amd64
从官网下载压缩包
sudo wget https://az764295.vo.msecnd.net/stable/7ba55c5860b152d999dda59393ca3ebeb1b5c85f/code-stable-code_1.7.2-1479766213_amd64.tar.gz
解压
sudo tar -xvf code-stable-code_1.7.2-1479766213_amd64.tar.gz
移动到 /usr/local/ 目录
sudo mv VSCode-linux-x64 /usr/local/
赋予程序可执行的权限
sudo chmod +x /usr/local/VSCode-linux-x64/code
复制一个VSCode图标文件到 /usr/share/icons/ 目录
sudo cp /usr/local/VSCode-linux-x64/resources/app/resources/linux/code.png /usr/share/icons/
在 /usr/share/applications/ 目录创建启动器
sudo vim /usr/share/applications/VSCode.desktop
[Desktop Entry]
Name=Visual Studio Code
Comment=Multi-platform code editor for Linux
Exec=/usr/local/VSCode-linux-x64/code
Icon=/usr/share/icons/code.png
Type=Application
StartupNotify=true
Categories=TextEditor;Development;Utility;
MimeType=text/plain;
复制到桌面
cp /usr/share/applications/VSCode.desktop ~/桌面/
之后就会发现桌面和应用程序菜单都有了VSCode的快捷方式了
打开VSCode
|