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