How to install Microsoft Visual studio code 1.13.1 on Ubuntu 16.04

How to install Microsoft Visual studio code 1.13.1 on Ubuntu 16.04

Visual Studio Code is a free, code-optimized editor based on electron. It supports features such as navigation, syntax highlighting, bracket matching, auto indentation, intellisense support and snippets. It also supports various languages and has integrated terminal with ability to handle multiple instances. This article will explain the installation of Visual Studio Code 1.13.1 on Ubuntu 16.04.

Installation procedure

To start the installation procedure, install the gdebi package in the target system by executing the following command.

root@linuxhelp1:~# apt-get install gdebi
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  gdebi-core gksu gnome-icon-theme libcairo-perl libgksu2-0 libglib-perl libgtk2-perl
.
.
.
Processing triggers for gconf2 (3.2.6-3ubuntu6) ...
Setting up gksu (2.0.2-9ubuntu1) ...
Setting up gdebi (0.9.5.7ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu3)

The gdebi package is installed in the target system. Download the visual studio code package using the wget command and execute it.

root@linuxhelp1:~# wget https://az764295.vo.msecnd.net/stable/379d2efb5539b09112c793d3d9a413017d736f89/code_1.13.1-1497464373_amd64.deb
--2017-07-12 12:07:22--  https://az764295.vo.msecnd.net/stable/379d2efb5539b09112c793d3d9a413017d736f89/code_1.13.1-1497464373_amd64.deb
.
.
.
code_1.13.1-1497464373_a 100%[==================================> ]  41.84M  1.10MB/s    in 40s    
2017-07-12 12:08:03 (1.03 MB/s) - ‘ code_1.13.1-1497464373_amd64.deb’  saved [43878100/43878100]

The visual studio code is downloaded in the target system. Install the visual studio code package using gdebi and execute it.

root@linuxhelp1:~# gdebi code_1.13.1-1497464373_amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading state information... Done
Code editing. Redefined.
 Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/li
.
.
.
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...

Now the Visual Studio Code icon is installed and to run the application, type the package name in the Ubuntu dashboard, click on the icon to run the application.


Wasn' t that an easy installation procedure? Visual Studio Code also contains a built in GUI for Git for the most common commands which makes it really easy to instantly see the changes the user is making in the current project.

FAQ
Q
How to disable crash reporting?
A
VS Code collects data about any crashes that occur and sends it to Microsoft to help improve our products and services.
If you use the JSON editor for your settings, add the following line:
"telemetry.enableCrashReporter": false
Q
Can I run pre-release versions of VS Code?
A
Want an early peek at new VS Code features? You can try pre-release versions of VS Code by installing the "Insiders" build. The Insiders build installs side by side to your stable VS Code install and has isolated settings, configurations and extensions. The Insiders build is updated nightly so you'll get the latest bug fixes and feature updates from the day before.
Q
How to install the gdebi package on Ubuntu?
A
execute the following command.
# apt-get install gdebi
Q
How do I find the VS Code version?
A
You can find the VS Code version information in the About dialog box.

On macOS, go to Code > About Visual Studio Code.

On Windows and Linux, go to Help > About.

The VS Code version is the first Version number listed and has the version format 'major.minor.release', for example, '1.27.0'.
Q
Can I run a portable version of VS Code?
A
Yes, VS Code has a Portable Mode which lets you keep settings and data in the same location as your installation, for example, on a USB drive.