How to Install Visual Studio Code on a Chromebook

You can install the desktop version of Visual Studio Code on a Chromebook by enabling ChromeOS’s Linux development environment, downloading the official Debian package, and installing it with APT. The steps below use the supported .deb package, which is simpler to maintain than an old, manually downloaded build. Interface illustrations are examples; labels and layout can vary slightly by ChromeOS version.

Before you begin

Check that your Chromebook supports Linux development environment. On a school or work device, an administrator may disable it. You also need enough free storage for the Linux container, VS Code, and your project files. Linux apps run in ChromeOS’s Linux environment, separate from the rest of the Chromebook; files outside the shared Linux area may need to be shared explicitly.

Use the current VS Code download page and the Chromebook instructions from Visual Studio Code and Chromebook Help. Avoid old direct download URLs because package versions change.

Install Visual Studio Code on your Chromebook

  1. Turn on the Linux development environment. Select the time in the lower-right corner, open Settings, and go to About ChromeOS > Developers. Next to Linux development environment, select Set up, then follow the prompts. Setup can take several minutes. When it finishes, ChromeOS opens the Terminal app with a Debian environment.
    Chromebook quick settings panel with the Settings gear visible
    Open Chromebook Settings from the status area.
    ChromeOS Settings with Developers open and Linux development environment setup available
    Find Linux development environment under About ChromeOS and Developers.
  2. Update the Debian container. In Terminal, choose the penguin shell if a container selector appears. Run these commands one at a time and confirm any prompt:
    sudo apt updatesudo apt upgrade
    apt update refreshes the package list; apt upgrade installs available updates. Keeping the container current helps avoid dependency errors during the VS Code install.
    Linux Terminal app open to the penguin container shell
    The Terminal app opens a Debian shell in the penguin container.
    Penguin terminal with apt update and apt upgrade commands entered
    Refresh package lists, then install available Debian updates.
  3. Check the processor architecture and download the matching package. In Terminal, run:
    dpkg --print-architecture
    Match the result to the choices on Microsoft’s Linux download page:
    Terminal resultDownload choice
    amd64x64
    arm64ARM64
    armhfARM32

    Open the VS Code download page, choose the Linux .deb package for that architecture, and download it. Chromebook models use different processors, so do not assume every device needs the x64 build.

    Visual Studio Code download page showing Debian Linux packages for x64, ARM32, and ARM64
    Select the Debian .deb download that matches the Chromebook Linux architecture.
  1. Put the package in Linux files. Open the ChromeOS Files app and find the downloaded package under Downloads. Rename it to code.deb, then copy or drag it into Linux files. That folder is available to the Debian container, so the Terminal can install the file by name.
    ChromeOS Files app copying the code.deb package from Downloads into Linux files
    Copy the downloaded package into Linux files so the Debian container can access it.
  2. Install the package. Return to Terminal and run:
    sudo apt install ./code.deb
    The ./ tells APT to install the local file. If the installer asks whether to add Microsoft’s package repository and signing key, accept if you want VS Code to receive updates through the system package manager. Microsoft documents this Debian installation method in its Linux setup guide.
    Linux terminal installing the local code.deb package with APT
    Install the local Debian package with APT.
  3. Open VS Code and your project. Open the Chromebook launcher and search for Visual Studio Code; it may appear in the Linux apps group. In VS Code, choose Open Folder and select a project inside Linux files. To work on a folder elsewhere in ChromeOS storage, open the Files app, right-click that folder, and choose the Linux sharing option if available.
    Visual Studio Code welcome window open on a Chromebook desktop
    After installation, launch VS Code and open a project folder.

Fix common installation problems

  • Linux setup is missing: the Chromebook may not support the feature, or a school/work administrator may have turned it off. Check with the administrator or device support information.
  • APT cannot find the file: confirm code.deb is in the Linux files folder and that the command includes ./. If you kept the original filename, use that exact name in the command instead.
  • Architecture or dependency error: rerun dpkg --print-architecture, download the corresponding build, and run sudo apt update before installing again. VS Code’s system requirements are listed in the official requirements documentation.
  • VS Code cannot see project files: copy the project into Linux files or share its folder with Linux in the Files app.

If your Chromebook cannot run Linux apps, you can use VS Code for the Web for browser-based editing. It is a separate option and does not install the Linux desktop application.

Leave a Comment

How to Watch Emby on ChromeOS in Chrome

How to Watch Emby on ChromeOS in Chrome

Open the Emby Web App on your Chromebook, sign in to your server, and play movies, shows, music, and photos without installing Linux.

How to Set Up Syncthing on a Chromebook

How to Set Up Syncthing on a Chromebook

Install Syncthing on a Chromebook, share a ChromeOS folder with Linux, connect another device, and keep the web interface private.

How to Use Tor Browser on a Chromebook

How to Use Tor Browser on a Chromebook

Enable Linux on your Chromebook, install Tor Browser with the Tor Project’s Flatpak launcher, connect to Tor, and understand what the setup protects.

How to Use Bitwarden on ChromeOS: Install, Save, and Autofill

How to Use Bitwarden on ChromeOS: Install, Save, and Autofill

Install Bitwarden on a Chromebook, save your first login, autofill websites, and learn when the optional Linux desktop app makes sense.

How to Install and Use Alternate Browsers on a Chromebook

How to Install and Use Alternate Browsers on a Chromebook

Install Firefox, Brave, Edge, or Opera on a Chromebook with Linux. Learn how to enable the Debian environment, choose a compatible package, and understand the limits.

How to Read E-Books on a Chromebook: Play Books and Foliate

How to Read E-Books on a Chromebook: Play Books and Foliate

Read EPUBs and PDFs in Google Play Books on your Chromebook, or install Foliate through Linux for a local reader that supports more formats.

How to Install and Use VLC on a Chromebook

How to Install and Use VLC on a Chromebook

Install VLC on a Chromebook from Google Play, play local files and network media, or set up the Linux desktop version when you need it.

How to Set Up Krita on a Chromebook

How to Set Up Krita on a Chromebook

Install Krita on a Chromebook with ChromeOS Linux and Flatpak, then launch the app, open shared artwork, and troubleshoot common setup limits.

How to Use Microsoft Teams on a Chromebook

How to Use Microsoft Teams on a Chromebook

Use Teams on a Chromebook through Chrome, sign in with a work or school account, install the optional web app, and resolve camera or microphone issues.

How to Install Visual Studio Code on a Chromebook

How to Install Visual Studio Code on a Chromebook

Set up ChromeOS Linux, choose the right VS Code Debian package for your Chromebook, and install the desktop editor with APT.