install vscode on centos
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了install vscode on centos相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
vscode 终端 执行pip install --upgrade pip 错误解决办法
VSCode 的 format-on-save 设置与 prettier 冲突
vscode 怎样使用 bash on windows 上的git
Vscode解决报错 An SSH installation couldn‘t be found
“An SSH installation couldn‘t be found“ - VScode无法远程接连Linux - Visual Studio Code - Insiders