Manjaro Linux安装VS Code
1、首先去微软将 VS Code下载下来, 下载地址如下,选择 tar.gz 64位版本
https://code.visualstudio.com/#alt-downloads
2、下载完成,开始解压
tar -zxvf code-stable-*.tar.gz
3、移动到/opt/目录下
sudo mv VSCode-linux-x64 /opt/
4、变更权限, 给code增加执行权限
sudo chmod +x /opt/VSCode-linux-x64/code
OK, 此时你就可以启动VS Code了
/opt/VSCode-linux-x64/code
5、在桌面上添加图标, 就是要在/usr/share/applications/下创建.desktop文件,如下
sudo touch /usr/share/applications/visualstudiocode.desktop sudo nano /usr/share/applications/visualstudiocode.desktop
6、在desktop文件中写入如下代码
[Desktop Entry] Name=Visual Studio Code Comment=Multi-platform code editor for linux Exec=/opt/VSCode-linux-x64/code Icon=/usr/share/icons/code.png Type=Application StartupNotify=true Categories=TextEditor;Development;Utility; MimeType=text/plain;
7、如果你的/usr/share/icons/文件夹中没有code.png, 可以将/opt/VSCode-linux-x64/resources/app/resources/linux/code.png拷贝进来,或者直接指向此文件
相关推荐
lonesomer 2020-09-17
farwang 2020-11-25
星愿心愿 2020-11-24
tianhuak 2020-11-24
zhjn0 2020-11-24
昭君出塞 2020-11-23
bluecarrot 2020-11-23
linuxwcj 2020-10-21
以梦为马不负韶华 2020-10-20
彼岸随笔 2020-10-20
yutou0 2020-10-17
applecarelte 2020-10-16
ourtimes 2020-10-16
waterhorse 2020-09-19
MRFENGG 2020-11-11
rainandtear 2020-10-30
kyssfanhui 2020-10-20