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-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

How do I install vscode on a linux system? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

Visual Studio Code is a lightweight and powerful code editor that supports Windows,OS X and Linux.

Here's how to install vscode on a Linux system.

Install VSCode (Visual Studio Code) in the linux system

1. Download the compressed package from the official website

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.gz2. 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.gz3. 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/code5. 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

Use the 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. Click the icon to open vscode.

This is the answer to the question about how to install vscode in the linux system. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel to learn more about it.

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

Servers

Wechat

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

12
Report