TranslateProject/sources/tech/20150504 How To Install Visual Studio Code On Ubuntu.md
2015-05-09 15:39:32 +08:00

3.7 KiB
Raw Blame History

Vic020

How To Install Visual Studio Code On Ubuntu

Microsoft has done the unexpected by releasing Visual Studio Code for all major desktop platforms that includes Linux as well. If you are a web developer who happens to be using Ubuntu, you can easily install Visual Studio Code in Ubuntu.

We will be using Ubuntu Make for installing Visual Studio Code in Ubuntu. Ubuntu Make, previously known as Ubuntu Developer Tools Center, is a command line utility that allows you to easily install various development tools, languages and IDEs. You can easily install Android Studio and other popular IDEs such as Eclipse with Ubuntu Make. In this tutorial we shall see how to install Visual Studio Code in Ubuntu with Ubuntu Make.

Install Microsoft Visual Studio Code in Ubuntu

Before installing Visual Studio Code, we need to install Ubuntu Make first. Though Ubuntu Make is available in Ubuntu 15.04 repository, youll need Ubuntu Make 0.7 for Visual Studio. You can get the latest Ubuntu Make by using the official PPA. The PPA is available for Ubuntu 14.04, 14.10 and 15.04. Also, it is only available for 64 bit platform.

Open a terminal and use the following commands to install Ubuntu Make via official PPA:

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make

Once you have installed Ubuntu Make, use the command below to install Visual Studio Code:

umake web visual-studio-code

Youll be asked to provide a path where it will be installed:

After throwing a whole lot of terms and conditions, it will ask for your permission to install Visual Studio Code. Press a at this screen:

Once you do that it will start downloading and installing it. Once it is installed, you can see that Visual Studio Code icon has already been locked to the Unity Launcher. Just click on it to run it. This is how Visual Studio Code looks like in Ubuntu 15.04 Unity:

Uninstall Visual Studio Code from Ubuntu

To uninstall Visual Studio Code, well use the same command line tool umake. Just use the following command in terminal:

umake web visual-studio-code --remove

If you do not want to use Ubuntu Make, you can install Visual Studio Code by downloading the files from Microsoft:

See, how easy it is to install Visual Studio Code in Ubuntu, all thanks to Ubuntu Make. I hope this tutorial helped you. Feel free to drop a comment if you have any questions or suggestions.


via: http://itsfoss.com/install-visual-studio-code-ubuntu/

作者:Abhishek 译者:译者ID 校对:校对者ID

本文由 LCTT 原创翻译,Linux中国 荣誉推出