Install Visual Studio Code in Linux

Source: Internet
Author: User

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.

  1. # mkdir /tmp/vscode; cd /tmp/vscode/
  2. # wget https://az764295.vo.msecnd.net/public/0.3.0/VSCode-linux-x64.zip
  3.  
  4. --2015-06-2406:02:54-- https://az764295.vo.msecnd.net/public/0.3.0/VSCode-linux-x64.zip
  5. Resolving az764295.vo.msecnd.net (az764295.vo.msecnd.net)...93.184.215.200,2606:2800:11f:179a:1972:2405:35b:459
  6. Connecting to az764295.vo.msecnd.net (az764295.vo.msecnd.net)|93.184.215.200|:443... connected.
  7. HTTP request sent, awaiting response...200 OK
  8. Length:64992671(62M)[application/octet-stream]
  9. Saving to:‘VSCode-linux-x64.zip’
  10. 100%[================================================>]64,992,67114.9MB/s in4.1s
  11. 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.

  1. # 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.

  1. # sudo chmod +x /opt/VSCode-linux-x64/Code
  2. # 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.

  1. # 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.

  1. # 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.

  1. # 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.

  1. # vi /tmp/vscode/visualstudiocode.desktop

Then paste the following row into the file.

  1. [DesktopEntry]
  2. Name=VisualStudioCode
  3. Comment=Multi-platform code editor forLinux
  4. Exec=/opt/VSCode-linux-x64/Code
  5. Icon=/usr/share/icons/vso.png
  6. Type=Application
  7. StartupNotify=true
  8. Categories=TextEditor;Development;Utility;
  9. 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.

  1. # 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.

  1. # add-apt-repository ppa:ubuntu-desktop/ubuntu-make
  2.  
  3. This ppa proposes package backport of Ubuntu make for supported releases.
  4. More info: https://launchpad.net/~ubuntu-desktop/+archive/ubuntu/ubuntu-make
  5. Press[ENTER] to continueor ctrl-c to cancel adding it
  6. gpg: keyring `/tmp/tmpv0vf24us/secring.gpg' created
  7. gpg: keyring `/tmp/tmpv0vf24us/pubring.gpg' created
  8. gpg: requesting key A1231595 from hkp server keyserver.ubuntu.com
  9. gpg: /tmp/tmpv0vf24us/trustdb.gpg: trustdb created
  10. gpg: key A1231595: public key "Launchpad PPA for Ubuntu Desktop" imported
  11. gpg: no ultimately trusted keys found
  12. gpg: Total number processed: 1
  13. gpg: imported: 1 (RSA: 1)
  14. OK

Then, update the local database index and install ubuntu-make.

  1. # apt-get update
  2. # 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.

  1. # 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:

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.