How To Install Microsoft Visual Studio Code on Linux

Visual Studio code (VScode) is the cross-platform Chromium-based code editor is being open sourced today by Microsoft. How do I install Microsoft Visual Studio Code on a Debian or Ubuntu or Fedora Linux desktop?

Visual Studio supports debugging Linux apps and code editor now open source by Microsoft. It is a preview (beta) version but you can test it and use it on your own Linux based desktop.

Why use Visual Studio Code?

From the project website:

Visual Studio Code provides developers with a new choice of developer tool that combines the simplicity and streamlined experience of a code editor with the best of what developers need for their core code-edit-debug cycle. Visual Studio Code is the first code editor, and first cross-platform development tool – supporting OS X, Linux, and Windows – in the Visual Studio family. If you use Unity, ASP.NET 5, NODE.JS or related tool, give it a try.

Requirements for Visual Studio Code on Linux

  1. Ubuntu Desktop version 14.04
  2. GLIBCXX version 3.4.15 or later
  3. GLIBC version 2.15 or later

The following installation instructions are tested on:

  1. Fedora Linux 22 and 23
  2. Debian Linux 8
  3. Ubuntu Linux 14.04 LTS

Download Visual Studio Code

Visit this page to grab the latest version and save it to ~/Downloads/ folder on Linux desktop:

Fig.01: Download Visual Studio Code For Linux

Make a new folder (say $HOME/VSCode) and extract inside that folder or in /usr/local/ folder. Unzip to that folder.

Alternate install method

You can use the wget command to download VScode as follows:
$ wget ''
Sample outputs:

--2015-11-18 13:55:23--
Resolving (, 2606:2800:11f:179a:1972:2405:35b:459
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 64638315 (62M) [application/octet-stream]
Saving to: ''
100%[======================================>] 64,638,315  84.9MB/s   in 0.7s   
2015-11-18 13:55:23 (84.9 MB/s) - '' saved [64638315/64638315]

Install VScode using the command line

Cd to ~/Download/ location, enter:
$ cd ~/Download/
$ ls -l

Sample outputs:

Fig.02: VSCode downloaded to my ~/Downloads/ folder

Unzip in /usr/local/ directory, enter:
$ sudo unzip -d /usr/local/

Cd into /usr/local/ to create the soft-link as follows using the ln command for the Code executable. This is useful to run VSCode from the terminal application:
$ su -
# cd /usr/local/
# ls -l
# cd bin/
# ln -s ../VSCode-linux-x64/Code code
# exit

Sample session:

Fig.03 Create the sym-link with the absolute path to the Code executable

How do I use VSCode on Linux?

Open the Terminal app and type the following command:
$ /usr/local/bin/code
Sample outputs:

Fig.04: VSCode in action on Linux

And, there you have it, the VSCode installed and working correctly on the latest version of Debian, Ubuntu and Fedora Linux. I suggest that you read getting started pages from Microsoft to understand the core concepts that will make you more productive writing and navigating your code.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 10 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
10 comments… add one
  • Damon Nov 18, 2015 @ 23:25

    I don’t see why you’d want to use this over one of the existing open source chromium/node-based editors such as Atom and Brackets, both of which already have thriving plugin ecosystems.

  • mrbrklyn Nov 19, 2015 @ 6:48

    screw ms.

  • Daniel Nov 20, 2015 @ 0:13

    Will this work on a z/VM Linux (SLES) running on s390x?

  • ljgww Nov 22, 2015 @ 10:00

    If one expects to move code from Visual Studio to this gimmick, it will soon find out that this is futile. VScode is nothing to do with VS albeit name insinuation. For that kind of stuff use mono Develop (which is in some ways IMHO better than VS).

    Perhaps this VScode can be used for something but, again, why?

    This only serve MS marketing to have waving flag, but after, what, 4 decades of misleading people I thought MS learned a lesson? Alas they did not. What they are trying with this is to lure very young generation of programmers which started their programming career with HTML and JavaScript trying to appear to be cool to them by adopting their cult tools.

    Beware. Bad dog MS! Sit.

  • Brent R Brian Nov 23, 2015 @ 12:33

    Why would I EVER want to take a secure LINUX box and infect it with MICROSOFT code ?

  • Kevin Feb 6, 2016 @ 2:29

    These comments are funny! That Microsoft hate is old school now. I use linux for my daily laptop, but I try to know both sides.
    MS changed CEOs awhile ago and they’re doing interesting stuff now. Visual Studio Code is COMPLETELY OPEN SOURCE and on github! It runs on Linux, Mac, and Windows the same.
    Even some of the Atom contributors are looking at it because it’s a really good editor and MS developers made some design choices that fixed things that stop people from using Atom, like really bad performance on big projects.
    And the reason you would want it is because it’s a damn good developer tool for python, js, etc.
    VSCode has nothing to do with the real “Visual Studio” product except the shared VS name marketing. And, if you do run windows desktop, even the free Visual Studio product is a damn good developer IDE for some types of projects.

  • zed Mar 10, 2016 @ 6:03

    when will the compiler be ported to linux? maybe also compile sql server on linux with it

  • wolf Apr 5, 2016 @ 13:55

    thx, but the 2nd part is more important on that type of software


  • tacomeat Apr 26, 2016 @ 22:17

    There’s gotta be a better way to install this. This method SuUUUUCKS!!!

  • tacomeat Apr 26, 2016 @ 22:21

    Man How the hell do I remove this????

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum