在linux系统中安装VSCode(Visual Studio Code)

简介: 在linux系统中安装VSCode(Visual Studio Code)

在linux系统中安装VSCode(Visual Studio Code)


1.从官网下载压缩包(话说下载下来解压就直接可以运行了咧,都不需要make)



访问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


2.解压 ,如果文件名不对,可能解压不出来的(扩展名:tar.gz)



tar jxcv code-stable-code_1.7.2-1479766213_amd64.tar.gz


3.然后移动到 /usr/local/ 目录



mv VSCode-linux-x64 /usr/local/


4.可能还需要给可执行的权限, 然后就已经可以运行了



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


5.复制一个VScode图标文件到 /usr/share/icons/ 目录(后面会有用)



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


6.创建启动器, 在/usr/share/applications/ 目录, 也可以将它复制到桌面目录



直接在中断 使用 命令:

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的快捷方式了


8.打开VSCode, 加载插件: cpptools | vscode-icons




OK, 其他插件自己看着装吧,^,^

不过,在虚拟机中 VSCode 启动有点慢哟~


相关文章
|
NoSQL IDE MongoDB
Studio 3T 2025.11 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.11 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
635 3
|
10月前
|
NoSQL IDE MongoDB
Studio 3T 2025.17 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.17 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
554 1
Studio 3T 2025.17 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
|
11月前
|
XML 缓存 Linux
在Linux环境下解决Visual Studio Code字体显示异常和字体替换方法。
解决Linux下VS Code字体显示异常,需要对Linux字体渲染机制有所理解,并对VS Code的配置选项进行合理设置。替换字体时则要通过系统字体配置或VS Code设置来完成。通过上述方法,可以有效地解决字体显示问题,从而提升代码编辑的视觉体验。
1627 21
|
11月前
|
安全 Linux C++
PVS‑Studio 7.38 for macOS, Linux & Windows - 代码质量安全静态分析
PVS‑Studio 7.38 for macOS, Linux & Windows - 代码质量安全静态分析
435 0
PVS‑Studio 7.38 for macOS, Linux & Windows - 代码质量安全静态分析
|
NoSQL IDE MongoDB
Studio 3T 2025.10 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.10 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
1320 21
Studio 3T 2025.10 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
|
安全 Linux iOS开发
PVS‑Studio 7.36 for macOS, Linux & Windows - 代码质量安全静态分析
PVS‑Studio 7.36 for macOS, Linux & Windows - 代码质量安全静态分析
313 1
PVS‑Studio 7.36 for macOS, Linux & Windows - 代码质量安全静态分析
|
iOS开发 MacOS
【Mac系统】解决Vscode中LeetCode插件不能刷剑指offer题库
文章讨论了解决Mac系统中Vscode里LeetCode插件无法刷剑指Offer题库的问题,并提供了一些相关的使用技巧和资源链接。
1187 1
|
NoSQL IDE MongoDB
Studio 3T 2025.5 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.5 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
560 2
Studio 3T 2025.5 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
|
人工智能 Java Python
python安装、vscode安装、conda安装:一文搞定Python的开发环境(史上最全)
尼恩架构团队推出了一系列《LLM大模型学习圣经》PDF,旨在帮助读者深入理解并掌握大型语言模型(LLM)及其相关技术。该系列包括Python基础、Transformer架构、LangChain框架、RAG架构及LLM智能体等内容,覆盖从理论到实践的各个方面。此外,尼恩还提供了配套视频教程,计划于2025年5月前发布,助力更多人成为大模型应用架构师,冲击年薪百万目标。
|
NoSQL IDE MongoDB
Studio 3T 2025.4 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.4 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
611 0
Studio 3T 2025.4 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端