Home > Operation and Maintenance > Linux Operation and Maintenance > Is there vscode under linux system?

Is there vscode under linux system?

angryTom
Release: 2019-11-02 17:22:54
Original
3612 people have browsed it

Is there vscode under linux system?

Is there vscode under Linux system?

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

The following describes how to install vscode under Linux system.

Install VSCode (Visual Studio Code) in Linux system

1. Download the compressed package from the official website

Visit the Visual Studio Code 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
Copy after login

2. Decompress, if the file name is wrong, it may not be decompressed (extension Name: tar.gz)

tar jxcv code-stable-code_1.7.2-1479766213_amd64.tar.gz
Copy after login

3. Then move to the /usr/local/ directory

mv VSCode-linux-x64 /usr/local/
Copy after login

4. You may also need to give executable permissions, and then you can run it

chmod +x /usr/local/VSCode-linux-x64/code
Copy after login

5. Copy a VScode icon file to the /usr/share/icons/ directory (will be useful later)

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

6. Create a launcher in the /usr/share/applications/ directory, also You can copy it to the desktop directory

Use the command directly at the break:

vim /usr/share/applications/VSCode.desktop
Copy after login

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=trueCategories=TextEditor;Development;Utility;
MimeType=text/plain;
Copy after login

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

cp /usr/share/applications/VSCode.desktop ~/桌面/
Copy after login

After that, you will find that there are shortcuts to VSCode on the desktop and application menu. Click the icon to open vscode.

Recommended: "linux usage tutorial"

The above is the detailed content of Is there vscode under linux system?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template