Install Visual Studio Code in Linux
Together to learn how to install Visual Studio Code in the Linux release. Visual Studio Code is an editor based on the Electron optimized Code, which is a Chromium-based software used to publish io. js applications for the desktop system. Visual Studio Code is a full-platform Code editor and text editor developed by Microsoft that supports Linux. It is free software but not open-source, and is released under the license terms of the proprietary software. It is a super powerful and fast code editor that can be used in our daily use. Visual Studio Code has many cool functions, such as navigation, intelligent sensing support, syntax highlighting, parentheses matching, Automatic completion, Code snippets, support for custom keyboard binding, and support for multiple languages, for example, Python, C ++, Jade, PHP, XML, Batch, F #, DockerFile, Coffee Script, Java, HandleBars, R, Objective-C, PowerShell, Luna, Visual Basic,. net, Asp. net, C #, JSON, Node. js, Javascript, HTML, CSS, Less, Sass, and Markdown. Visual Studio Code integrates the Package Manager, library, build, and other common tasks to accelerate daily workflows. Most popular in Visual Studio Code is its debugging function, which includes streaming support for Node. js preview debugging.
Note: Visual Studio Code only supports 64-bit Linux releases.
The following are several simple steps to install Visual Studio Code in all Linux distributions.
1. Download the Visual Studio Code package
First, we want to download the 64-bit Linux operating system from the Microsoft Server Visual Studio Code installation package, the link is http://go.microsoft.com/fwlink? LinkID = 534108. Here we use wget to download and save it to the tmp/VSCODE directory.
# mkdir /tmp/vscode; cd /tmp/vscode/
# wget https://az764295.vo.msecnd.net/public/0.3.0/VSCode-linux-x64.zip
-
--2015-06-2406:02:54-- https://az764295.vo.msecnd.net/public/0.3.0/VSCode-linux-x64.zip
Resolving az764295.vo.msecnd.net (az764295.vo.msecnd.net)...93.184.215.200,2606:2800:11f:179a:1972:2405:35b:459
Connecting to az764295.vo.msecnd.net (az764295.vo.msecnd.net)|93.184.215.200|:443... connected.
HTTP request sent, awaiting response...200 OK
Length:64992671(62M)[application/octet-stream]
Saving to:‘VSCode-linux-x64.zip’
100%[================================================>]64,992,67114.9MB/s in4.1s
2015-06-2406:02:58(15.0 MB/s)-‘VSCode-linux-x64.zip’ saved [64992671/64992671]
2. Extract the Software Package
Now, after downloading the Visual Studio Code zip package, we plan to decompress it using the unzip command. Run the following command on the terminal or console.
# unzip /tmp/vscode/VSCode-linux-x64.zip -d /opt/
NOTE: If unzip has not been installed, you must first install it through the Package Manager. If you are running Ubuntu, use apt-get. If you are running Fedora, CentOS, you can use dnf or yum to install it.
3. Run Visual Studio Code
After expanding the software package, we can directly run a file named Code to start Visual Studio Code.
# sudo chmod +x /opt/VSCode-linux-x64/Code
# sudo /opt/VSCode-linux-x64/Code
If we want to start Code anywhere through the terminal, we need to create a link/usr/local/bin/Code for/opt/vscode/code.
# ln -s /opt/VSCode-linux-x64/Code /usr/local/bin/code
Now, you can run the following command on the terminal to start Visual Studio Code.
# code .
4. Create a desktop startup
Next, after successfully expanding the Visual Studio Code package, we plan to create a desktop startup program so that it can be started from the starter, menu, and desktop based on different desktop environments. Copy an icon file to the/usr/share/icons/directory.
# cp /opt/VSCode-linux-x64/resources/app/vso.png /usr/share/icons/
Then, we create a desktop Startup Program with the file extension. desktop. Here, we will use your favorite text editor to create a file named visualstudiocode. desktop in the/tmp/VSCODE/directory.
# vi /tmp/vscode/visualstudiocode.desktop
Then paste the following row into the file.
[DesktopEntry]
Name=VisualStudioCode
Comment=Multi-platform code editor forLinux
Exec=/opt/VSCode-linux-x64/Code
Icon=/usr/share/icons/vso.png
Type=Application
StartupNotify=true
Categories=TextEditor;Development;Utility;
MimeType=text/plain;
After creating the desktop file, we will copy the file to the/usr/share/applications/directory so that you can click Start Visual Studio Code in the initiator and menu.
# cp /tmp/vscode/visualstudiocode.desktop /usr/share/applications/
After that, we can start it in the starter or menu.
Visual Studio Code
Visual Studio Code in Ubuntu
To install Visual Studio Code in Ubuntu 14.04/14.10/15.04 Linux distributions, we can use Ubuntu Make 0.7. This is the easiest way to install code in ubuntu, because we only need to execute several commands. First, we need to install ubuntu Make 0.7 in our Ubuntu linux release. To install it, you must first add a PPA for it. You can run the following command.
# add-apt-repository ppa:ubuntu-desktop/ubuntu-make
-
This ppa proposes package backport of Ubuntu make for supported releases.
More info: https://launchpad.net/~ubuntu-desktop/+archive/ubuntu/ubuntu-make
Press[ENTER] to continueor ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpv0vf24us/secring.gpg' created
gpg: keyring `/tmp/tmpv0vf24us/pubring.gpg' created
gpg: requesting key A1231595 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpv0vf24us/trustdb.gpg: trustdb created
gpg: key A1231595: public key "Launchpad PPA for Ubuntu Desktop" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Then, update the local database index and install ubuntu-make.
# apt-get update
# apt-get install ubuntu-make
After installing ubuntu Make on our Ubuntu operating system, we can run the following command on a terminal to install the Code.
# umake web visual-studio-code
Umake Web Code
After running the preceding command, we are required to enter the desired installation path. Then, we are requested to allow Visual Studio Code to be installed in ubuntu. We enter "a" (accept ). After the input, it downloads and installs the Code on the ubuntu machine. Finally, we can start it in the starter or menu.
Summary
We have successfully installed Visual Studio Code on the Linux release. The Visual Studio Code installed on all linux distributions is similar to the one described above. You can also use umake to install Visual Studio in Ubuntu distributions. Umake is a popular tool for installing development tools, IDEs and languages. We can use Umake to easily install Android Studios, Eclipse, and many other popular ides. Visual Studio Code is based on a Github project called Electron, which is part of the Atom. io editor. It has many improvements not available in the Atom. io editor. Currently, Visual Studio Code only supports the 64-bit linux operating system platform.
If you have any questions, suggestions, or feedback, please leave a message in the comment box below so that we can improve and update our content. Thank you very much! Enjoy :-)
Install Visual Studio Code on Ubuntu 14.04
Use Visual Studio Code to develop TypeScript
Visual Studio Code simple trial
Visual Studio Code trial
Visual Studio 2010 & Help Library Manager installation instructions
How to configure OpenCV 2.3.x/2.4.x in Visual Studio 2005/2008 and Visual Studio 2010
Use the opencv-2.4.0.exe file to compile the x86 or x64 platform Visual Studio 2005/2008/2010 target file
Visual Studio LightSwitch supports HTML5 and JavaScript
Visual Studio 11: use C ++ to develop a simplest Metro application
Visual Studio details: click here
Visual Studio: click here
This article permanently updates the link address: