@adamhand
2018-07-22T19:48:02.000000Z
字数 944
阅读 664
访问Visual Studio Code官网 https://code.visualstudio.com/docs?dv=linux64
或者直接用下列命令下载64位安装包:
wget https://az764295.vo.msecnd.net/stable/7ba55c5860b152d999dda59393ca3ebeb1b5c85f/code-stable-code_1.7.2-1479766213_amd64.tar.gz
tar xzvf code-stable-code_1.7.2-1479766213_amd64.tar.gz
mv VSCode-linux-x64 /usr/local/
chmod +x /usr/local/VSCode-linux-x64/code
cp /usr/local/VSCode-linux-x64/resources/app/resources/linux/code.png /usr/share/icons/
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的快捷方式了