码迷,mamicode.com
首页 > 其他好文 > 详细

install vscode on centos

时间:2017-11-28 20:39:14      阅读:262      评论:0      收藏:0      [点我收藏+]

标签:not found   exec   xss   not run   upn   har   ble   ons   .gz   

1.down load package from https://code.visualstudio.com/docs/?dv=linux64

2.tar zxf code-stable-code_1.18.1-1510857349_amd64.tar.gz

3.mv VSCode-linux-x64 /usr/local/

4.chmod +x /usr/local/VSCode-linux-x64/code

5.cp /usr/local/VSCode-linux-x64/resources/app/resources/linux/code.png /usr/share/icons/

6.vim /usr/share/applications/VSCode.desktop

input :

[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;

 

7.cp /usr/share/applications/VSCode.desktop ~/Desktop/

 

note:sometimes it can not run,you should me

ldd /usr/local/Vscode/code

you will get libXss.so.l => not found

then:

yum search libXSS

yum install libXScrnSaver

 

reboot

done

 

install vscode on centos

标签:not found   exec   xss   not run   upn   har   ble   ons   .gz   

原文地址:http://www.cnblogs.com/wywnet/p/7911744.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!