Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install VSCode in Linux system

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces you how to install VSCode in the Linux system, the content is very detailed, interested friends can refer to, hope to be helpful to you.

About VSCode (Visual Studio Code): VSCode, whose full name is Visual Studio Code, is a lightweight code editor from Microsoft that is free, open source and powerful.

VSCode supports syntax highlighting, intelligent code completion, custom hotkeys, parenthesis matching, code snippets, code comparison Diff, GIT and other features of almost all mainstream program languages, supports plug-in extensions, and is optimized for web page development and cloud application development. The software supports Win, Mac and Linux across platforms.

Detailed steps to install VSCode (Visual Studio Code) in Linux system: 1. Download the compressed package from the official website (that is, download it and decompress it and run it directly, without the need for make) and visit Visual Studio Code's official website https://code.visualstudio.com/docs?dv=linux64.

I am 64-bit:

Wget https://az764295.vo.msecnd.net/stable/7ba55c5860b152d999dda59393ca3ebeb1b5c85f/code-stable-code_1.7.2-1479766213_amd64.tar.gz

two。 Extract it. If the file name is not correct, you may not be able to extract (extension: tar.gz) tar jxcv code-stable-code_1.7.2-1479766213_amd64.tar.gz.

3. Then move to the / usr/local/ directory mv VSCode-linux-x64 / usr/local/

4. You may also need to give executable permissions, and then you can run chmod + x / usr/local/VSCode-linux-x64/code

5. Copy a VScode icon file to the / usr/share/icons/ directory (useful later) cp / usr/local/VSCode-linux-x64/resources/app/resources/linux/code.png / usr/share/icons/

6. Create the initiator in the / usr/share/applications/ directory, or you can copy it to the desktop directory directly in the interrupt command:

Vim / usr/share/applications/VSCode.desktop

Then enter the following text:

[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

Save and exit, and then you can copy it to the desktop:

Cp / usr/share/applications/VSCode.desktop ~ / Desktop /

After that, you will find that both desktop and application menus have shortcuts to VSCode.

8. Open VSCode and load the plug-in: cpptools | vscode-icons

OK, the other plug-ins can see how they dress.

However, it is a bit slow to start VSCode in the virtual machine.

On how to install VSCode in the Linux system to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report