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
Method 1. Using the .deb installation files
Microsoft now provides packages to install Visual Studio Code in Linux. Jut head over to the download page of Visual Studio Code and you’ll find the .deb and .rpm option under Linux.
I don’t need to tell you that if you are running Ubuntu or any other Linux distribution based on Ubuntu such as Linux Mint, elementary OS etc, you need to opt for .deb. rpm is for Fedora and SUSE based Linux distributions.
There are options for 32 bit systems as well. You can read this post to find if your Ubuntu is 32 bit or 64 bit.
Once downloaded, just double click on it to install it.
Method 2. Using umake in Ubuntu
Before installing Visual Studio Code, we need to install Ubuntu Make first. Though Ubuntu Make is available in Ubuntu 15.04 repository, you’ll 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
You’ll 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, we’ll 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. In a similar post, read how to install PyCharm in Ubuntu. Feel free to drop a comment if you have any questions or suggestions.