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

The method of vscode in linux system installation

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Editor to share with you the method of vscode in the installation of linux system. I hope you will gain a lot after reading this article. Let's discuss it together.

1. Download the package from the official website

The 64 bits are as follows:

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

2. Extract it. If the file name is not correct, it may not be extracted (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 permission, and then you can run it.

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 copy it to the desktop directory

Use the following command directly in the interrupt:

Vim / usr/share/applications/VSCode.desktop

Then enter the following text:

[Desktop Entry] Name=Visual Studio CodeComment=Multi-platform code editor for LinuxExec=/usr/local/VSCode-linux-x64/codeIcon=/usr/share/icons/code.pngType=ApplicationStartupNotify=trueCategories=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 the desktop and application menus have shortcuts to VSCode.

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

Other plug-ins can be installed as needed.

After reading this article, I believe you have a certain understanding of the method of vscode in the installation of linux system, want to know more about it, welcome to follow the industry information channel, thank you for reading!

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

Internet Technology

Wechat

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

12
Report