How to install Visual Studio Code on Ubuntu using Debian package manager

Visual Studio Code can be installed from terminal using Debian package manager.

1. Download latest version

Latest version can be downloaded from this URL: https://code.visualstudio.com/docs/?dv=linux64_deb

Or, if you know direct download URL, you can use wget to obtain it:

1
2
3
4
5
6
7
8
9
10
$ wget https://az764295.vo.msecnd.net/stable/5be4091987a98e3870d89d630eb87be6d9bafd27/code_1.5.3-1474533365_amd64.deb
--2016-09-30 09:37:18-- https://az764295.vo.msecnd.net/stable/5be4091987a98e3870d89d630eb87be6d9bafd27/code_1.5.3-1474533365_amd64.deb
Resolving az764295.vo.msecnd.net (az764295.vo.msecnd.net)... 72.21.81.200, 2606:2800:11f:17a5:191a:18d5:537:22f9
Connecting to az764295.vo.msecnd.net (az764295.vo.msecnd.net)|72.21.81.200|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32914062 (31M) [application/x-debian-package]
Saving to: ‘code_1.5.3-1474533365_amd64.deb’
code_1.5.3-14745333 100%[===================>] 31.39M 59.9MB/s in 0.5s

1

2. Install it

Run the command (don’t forget to change the name of the file according to the downloaded version):

1
$ sudo dpkg -i code_1.5.3-1474533365_amd64.deb

3. Run

Type code command:

screenshot