How to install Microsoft Visual Studio Code on a Chromebook

Visual Studio Code
Visual Studio Code (Image credit: Windows Central)

It's easy to dismiss Chromebooks and while Google's laptops don't use an OS on the same scale as Windows 10, but the platform has been maturing over time into something lightweight but still well featured.

And with Chromebooks becoming more and more popular, particularly in the budget space, there are more people looking to do more things with them. And that includes coding. Yes, coding.

Microsoft's free Visual Studio Code is an incredible piece of software for coding and the good news is that it's now usable on a Chromebook.

Here's what you need to know.

Making sure Linux is enabled on your Chromebook

What makes the magic happen is the Crostini Linux container on Chrome OS which will allow you to install the Linux version of Visual Studio Code on your Chromebook.

If you don't already have that enabled, it's really straightforward.

  1. Open Settings.
  2. Locate Linux (Beta) in the sidebar.
  3. Click Turn on.

Source: Windows Central (Image credit: Source: Windows Central)
  1. At the next window, click Next.

Source: Windows Central (Image credit: Source: Windows Central)
  1. Give your Linux install a username.
  2. Decide how much space you want to dedicate from your internal storage to it.

Source: Windows Central (Image credit: Source: Windows Central)
  1. Click Install.

Source: Windows Central (Image credit: Source: Windows Central)

The Linux container will now begin to download and install itself on your Chromebook. You'll know it's finished when a terminal window pops up and then you can move on to the next step.

How to install Visual Studio Code for Linux on Chrome OS

Visual Studio Code

Source: Windows Central (Image credit: Source: Windows Central)

Once Linux is enabled on your Chromebook getting up and running with Visual Studio Code is beyond simple.

  1. Head to the Visual Studio Code website.
  2. Download the .deb Debian package.

Visual Studio Code

Source: Windows Central (Image credit: Source: Windows Central)
  1. Open the Files app.
  2. Locate the downloaded package.

Source: Windows Central (Image credit: Source: Windows Central)
  1. Right-click and select Install with Linux (Beta).
  2. Click Install.

Source: Windows Central (Image credit: Source: Windows Central)

From here on out you'll be able to launch Visual Studio Code from the app drawer like any other application on your Chromebook once the Linux installer has finished. You can also launch it from the terminal simply by typing code.

When downloading the installer make sure you grab the right version for your Chromebook. The September 2020 update of Visual Studio Code added support for ARM-based Linux machines, which means you can now use it on devices like the Lenovo Chromebook Duet. If you are on an ARM Chromebook, download the ARM version of the installer, if you're on an AMD or Intel Chromebook, you want the x64 installer.

The stock install of Visual Studio Code is deliberately barebones and lightweight, so you'll need to spec it out to your requirements with extensions. Fortunately there's a host of these both from Microsoft and third-parties that you can install right from within Visual Studio Code. You're literally a few clicks away from starting to code.

Richard Devine
Managing Editor - Tech, Reviews

Richard Devine is a Managing Editor at Windows Central with over a decade of experience. A former Project Manager and long-term tech addict, he joined Mobile Nations in 2011 and has been found on Android Central and iMore as well as Windows Central. Currently, you'll find him steering the site's coverage of all manner of PC hardware and reviews. Find him on Mastodon at mstdn.social/@richdevine