A Chromebook may look like a machine built mainly for browser tabs, streaming, and politely reminding you that your Google Drive storage is almost full. Under the hood, however, many modern Chromebooks can run a complete Linux development environment. That means you can install Visual Studio Code, open a terminal, manage Git repositories, run programming tools, and turn a lightweight laptop into a surprisingly capable coding workstation.
The most reliable way to install Visual Studio Code on a Chromebook is through ChromeOS’s Linux development environment, also known as Crostini. Once Linux is enabled, VS Code behaves much like it does on a regular Debian-based computer. It appears in the ChromeOS Launcher, opens local projects, supports extensions, and provides an integrated terminal.
This guide explains the recommended Debian package method, an optional command-line installation, browser-based alternatives, architecture selection, file sharing, updates, and fixes for the errors most Chromebook owners encounter.
Can Visual Studio Code Run on a Chromebook?
Yes, Visual Studio Code can run on a Chromebook that supports the Linux development environment. ChromeOS places Linux applications inside a protected virtualized container, allowing desktop Linux software to operate alongside Chrome, Android apps, and standard ChromeOS tools.
You do not normally need to enable Developer Mode, replace ChromeOS, or perform any warranty-frightening acrobatics. The built-in Linux feature is separate from the older Developer Mode process. In other words, you can install a serious code editor without making your Chromebook display alarming warning screens every time it starts.
Microsoft provides Visual Studio Code packages for several Linux processor architectures, including x64, ARM64, and ARM32. This matters because Chromebooks use a mixture of Intel, AMD, MediaTek, Qualcomm, and other processors. Downloading the correct package is essential; a package built for the wrong architecture will not install, no matter how sternly you stare at it.
What You Need Before Installation
- A Chromebook that supports the Linux development environment
- An updated version of ChromeOS
- Permission to enable Linux on the device
- Enough free internal storage for Linux, VS Code, extensions, and projects
- A stable internet connection during setup
Visual Studio Code itself is relatively lightweight, but ChromeOS, the Linux container, browser tabs, language servers, and extensions all consume memory. A Chromebook with 4 GB of RAM can handle basic HTML, CSS, JavaScript, Python, and Markdown work. An 8 GB model generally feels more comfortable when several extensions, terminals, or browser tabs are open.
School and workplace Chromebooks may be managed by an administrator. If the Linux option is unavailable or disabled, the administrator may have blocked it. In that case, the browser version of VS Code may be the most practical alternative.
Step 1: Update ChromeOS
Before enabling Linux, install available ChromeOS updates. An outdated system can cause setup failures, missing menu options, or dependency problems later.
- Select the time in the lower-right corner.
- Select the Settings icon.
- Open About ChromeOS.
- Select Check for updates.
- Install any available update and restart the Chromebook when prompted.
After restarting, return to Settings and confirm that ChromeOS reports the device as up to date.
Step 2: Enable the Linux Development Environment
- Open Settings.
- Select About ChromeOS, followed by Developers. On some ChromeOS versions, Developers may appear under an Advanced section.
- Find Linux development environment.
- Select Set up or Turn on.
- Choose a Linux username and allocate storage space.
- Follow the setup wizard until the Terminal window opens.
ChromeOS creates a Debian-based Linux container and adds a Terminal application to the Launcher. The first setup can take several minutes. This is normal; your Chromebook is not daydreaming. It is creating the environment that will host VS Code and your other development tools.
Once Terminal opens, refresh the Linux package information:
You may also install available package updates:
The upgrade command is optional, but it can reduce dependency conflicts on a newly created or long-unused Linux container.
Step 3: Identify Your Chromebook’s Linux Architecture
Downloading the correct Visual Studio Code package is one of the most important steps. Open the Chromebook Terminal and run:
The result will usually be one of the following:
- amd64: Choose the Linux x64 Debian package.
- arm64: Choose the Linux ARM64 Debian package.
- armhf: Choose the Linux ARM32 Debian package.
Do not assume that an AMD64 package is only for computers with AMD processors. In Linux package terminology, amd64 is the common 64-bit x86 architecture used by both modern Intel and AMD processors.
Step 4: Download the Correct Visual Studio Code DEB Package
Open Chrome and visit the official Visual Studio Code download page. Locate the Linux .deb options and select the architecture matching the result from the previous step.
The downloaded filename will resemble one of these examples:
The version numbers change frequently, so avoid instructions that provide a permanent download command containing one old filename. That command may have worked when dinosaurs roamed the internet, but the link will eventually become outdated.
Step 5: Install Visual Studio Code Graphically
The simplest installation method uses the ChromeOS Files application.
- Open the Files app.
- Go to the Downloads folder.
- Locate the downloaded VS Code
.debfile. - Double-click the file.
- Select Install when the Linux installer appears.
- Wait for the installation confirmation.
If double-clicking the file does not open the Linux installer, move the package from Downloads into the Linux files folder. Then try again or use the terminal method below.
Alternative: Install the DEB Package from Terminal
The terminal method is useful when the graphical installer fails or when you want clearer error messages.
First, copy or move the downloaded package into Linux files. Open Terminal and list the available files:
Install the package by entering its exact filename:
For example, an x64 package command may look like this:
Replace the example filename with the actual file shown by the ls command. The ./ prefix tells APT that the package is a local file in the current directory.
The Microsoft Debian package may ask whether it should add the official Visual Studio Code repository and signing key. Allowing this makes future VS Code updates available through the Linux package manager.
Step 6: Launch Visual Studio Code
After installation, open the ChromeOS Launcher and look inside the Linux apps folder. Select Visual Studio Code.
You can also start it from Terminal:
To open the current Linux directory directly in VS Code, run:
The first launch may take longer than later launches because ChromeOS must start the Linux virtual machine and container. After the environment is active, subsequent openings are usually faster.
Step 7: Share Chromebook Folders with Linux
VS Code naturally has access to files stored under Linux files. It does not automatically receive unrestricted access to every ChromeOS folder, Google Drive directory, SD card, or USB drive.
To make another folder available:
- Open the ChromeOS Files app.
- Right-click the folder you want to use.
- Select Share with Linux.
- Return to VS Code and open the shared folder.
For the smoothest performance, keep active repositories inside Linux files. Shared Google Drive or removable-storage folders are convenient for transfers and backups, but projects containing thousands of small dependency files may respond more slowly there.
Install Basic Development Tools
Install Git
Git is essential for cloning repositories and tracking changes:
Confirm the installation:
Install Python
For Python development, install Python 3, pip, and virtual-environment support:
Then install Microsoft’s Python extension from the VS Code Extensions view.
Add VS Code Extensions Carefully
Open the Extensions panel with Ctrl+Shift+X. Useful choices include language support, formatters, linters, Git tools, and theme packages. Install only what you need. Fifty extensions may look impressive, but on a low-memory Chromebook they can turn opening a text file into a small historical event.
How to Update Visual Studio Code on a Chromebook
If the official Microsoft repository was added during installation, update VS Code with the rest of the Linux packages:
You can also update only Visual Studio Code:
If the repository was not added, download the newest matching Debian package and install it over the existing version. Your settings and project files should remain intact, although backing up important work is always sensible.
Alternative Method: Use Visual Studio Code in the Browser
When Linux is unavailable, open the web edition of Visual Studio Code in Chrome. It requires no local installation and is excellent for browsing repositories, editing text, changing configuration files, and performing lightweight source-control work.
The browser editor has limitations. It does not provide the same unrestricted local terminal, native debugger, runtime access, or extension compatibility as the desktop Linux application. Some extensions work in the browser, while extensions that require native binaries or operating-system access may not.
For more demanding browser-based work, GitHub Codespaces or a remote VS Code server can supply cloud or remote computing resources. This arrangement lets the Chromebook act as the interface while another computer handles compilation, containers, databases, and heavier workloads.
Should You Install the Flatpak Version?
Visual Studio Code is also available through Flathub, and some older guides recommend this method. Flatpak can be useful when the Debian package will not install, but it should generally be treated as a fallback on ChromeOS.
The Flathub package is a community repackaging of Microsoft’s build rather than a package officially supported by Microsoft. Its sandbox may require extra permissions for terminals, compilers, SDKs, and project folders. The native Microsoft Debian package usually integrates more cleanly with the default Chromebook Linux container.
Troubleshooting Common Installation Problems
The Linux Option Is Missing
Update ChromeOS and check the Developers section again. If the option remains missing, the Chromebook may not support Linux, or a school or workplace administrator may have disabled it. Older models should be checked against Google’s Linux-support information.
The Package Has the Wrong Architecture
Run this command again:
Delete the incorrect package and download the matching x64, ARM64, or ARM32 Debian build.
APT Reports Broken or Missing Dependencies
Refresh package information and repair incomplete dependencies:
Then retry the VS Code installation. Restarting the Linux environment or rebooting ChromeOS can also clear a container process that has become stuck.
VS Code Cannot See a Chromebook Folder
Move the project into Linux files or right-click the original folder in the Files app and select Share with Linux. External drives may also need to be shared before Linux applications can access them.
VS Code Opens Slowly or Freezes
Close unnecessary Chrome tabs, disable extensions you are not using, and avoid placing large dependency-heavy projects in synchronized folders. Restart the Linux container when performance remains poor. On entry-level hardware, use browser-based or remote development for large builds.
Real-World Experience: What Coding on a Chromebook Feels Like
The first surprise is how normal the experience becomes after installation. VS Code opens in its own resizable window, appears in the Launcher, supports keyboard shortcuts, and provides the familiar sidebar, command palette, terminal, debugger, and extension marketplace. After a few minutes, it stops feeling like a clever Chromebook trick and starts feeling like an ordinary Linux development setup.
Startup behavior is the most noticeable difference. When Linux has not been used since the Chromebook was restarted, opening VS Code may require a brief pause while ChromeOS starts the virtual machine and Debian container. Once the container is awake, launching another terminal or reopening VS Code is much quicker. Users who expect instant browser-like startup may initially think the application ignored them. Usually, it is simply tying its virtual shoelaces.
Basic web development is a particularly good match. HTML, CSS, JavaScript, lightweight Node.js projects, Markdown documentation, Git, and small Python programs work comfortably on many affordable models. Running a local development server inside Linux and viewing the result in Chrome creates an efficient workflow: code in one window, refresh the browser in another, and blame the missing semicolon in a third.
Storage organization has a major effect on the experience. Projects kept inside Linux files generally produce fewer permission surprises and better performance. Keeping source code directly in Google Drive sounds wonderfully responsible, but dependency folders containing thousands of tiny files can sync slowly. A better routine is to develop inside Linux files, commit frequently with Git, push to a remote repository, and use Drive or an external disk for periodic backups.
Low-cost Chromebooks also reward extension discipline. A theme, formatter, language extension, and Git helper may be harmless. Several AI assistants, multiple language servers, container tools, database clients, and a small army of decorative extensions can consume memory rapidly. Installing extensions according to the current project keeps VS Code responsive and makes troubleshooting easier.
Keyboard layouts deserve attention as well. Chromebook function keys differ from traditional laptop keys, and some VS Code shortcuts may overlap with ChromeOS shortcuts. The Command Palette is an excellent escape hatch because nearly every action can be found by name. Custom keyboard shortcuts can then be assigned to frequently used commands.
Battery life is usually better during simple editing than during compilation or continuous development servers. Heavy builds, language indexing, and multiple terminal processes wake the processor and increase power consumption. For long sessions away from an outlet, closing unused tabs and stopping dormant servers can make a meaningful difference.
The biggest practical advantage is portability. A compact Chromebook can become a capable classroom, travel, or secondary development machine without replacing ChromeOS. The biggest limitation is raw computing power. Large Java builds, Android emulators, complex containers, machine-learning workloads, and enormous repositories are better handled remotely. VS Code’s remote development tools, browser editor, and cloud environments allow the Chromebook to remain useful even when the actual workload belongs on a stronger machine.
Final Thoughts
Installing Visual Studio Code on a Chromebook is straightforward once the Linux development environment is enabled and the correct processor architecture is identified. For most users, the official Microsoft Debian package is the best choice because it offers native desktop features, package-manager updates, terminal integration, extensions, and access to local Linux development tools.
The browser edition is a useful zero-install alternative, while remote development can transform even modest Chromebook hardware into a front end for powerful cloud or desktop systems. With sensible storage habits and a carefully chosen extension list, a Chromebook can handle far more programming work than its browser-first reputation suggests.
Note: ChromeOS menu names and Linux availability can vary by Chromebook model, update channel, account type, and administrator policy. Always download the current VS Code package from Microsoft rather than reusing an old version-specific link.



