Installing Vscode in a Linux system (Visual Studio Code)

Source: Internet
Author: User



Installing Vscode in a Linux system (Visual Studio Code)



1. Download the compressed package from the official website (if you download it and unzip it, you can run it directly, no need to make)



Visit the Visual Studio Code official website https://code.visualstudio.com/docs?dv=linux64



I am a 64-bit:



wget Https://az764295.vo.msecnd.net/stable/7ba55c5860b152d999dda59393ca3ebeb1b5c85f/code-stable-code_ 1.7.2-1479766213_amd64.tar.gz



2. Unzip, if the file name is incorrect, 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 the executable permission, and then you can already run the



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 launcher, in the/usr/share/applications/directory, or copy it to the desktop directory



Directly in the Interrupt use 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; 


Exit after saving, and then copy to desktop:



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



After that, you'll find the desktop and application menus have vscode shortcuts.



8. Open Vscode, load plugin: cpptools | Vscode-icons






OK, other plugins look at your dress, ^,^.



However, the Vscode startup in the virtual machine is a bit slow yo ~






Installing Vscode (Visual Studio Code) in a Linux system


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.