Skip to content

How to Run Visual Studio Code on Chromebook

Running Visual Studio Code (VS Code) on a Chromebook is a great way to code directly from your Chromebook. With the Linux (Crostini) feature in Chrome OS, you can easily set up and run Visual Studio Code. This guide will walk you through the steps for installing and running VS Code on your Chromebook.

1. Check System Requirements

Ensure that your Chromebook meets the following requirements:
  • Your Chromebook must be running Chrome OS version 69 or higher.
  • Your Chromebook must support Linux (Crostini). Most modern Chromebooks support this feature.
  • You should have at least 4GB of RAM, though 8GB is recommended for optimal performance.

2. Enable Linux (Crostini) on Your Chromebook

Before you can run Visual Studio Code, you need to enable Linux (Crostini) on your Chromebook:
  1. Open the Settings app on your Chromebook.
  2. Scroll down to the Developers section and click Turn On under Linux (Beta).
  3. Follow the prompts to set up Linux. Choose a name for your Linux environment and allocate disk space (at least 10GB is recommended).
  4. Once Linux is installed, the terminal window will open, indicating that the Linux container has been successfully set up.

3. Update Your Linux Environment

To ensure your Linux environment is up to date, open the Linux terminal and run the following commands:
sudo apt update && sudo apt upgrade
This will update your Linux system and install any missing packages needed for Visual Studio Code.

4. Install Visual Studio Code

Visual Studio Code is available for Linux as a .deb package, making it easy to install on your Chromebook’s Linux environment. Here’s how to install it:
  1. Go to the official Visual Studio Code website: Visual Studio Code.
  2. Download the .deb package for Linux.
  3. Once the download completes, open the Linux terminal and navigate to the directory where the .deb file was downloaded.
  4. Install Visual Studio Code by running the following command:
  5. sudo dpkg -i code_*.deb
  6. If you encounter missing dependencies, resolve them by running:
  7. sudo apt --fix-broken install
  8. After installation, Visual Studio Code will be ready to use.

5. Launch Visual Studio Code

After installation, you can launch Visual Studio Code from the App Launcher on your Chromebook:
  • Click on the App Launcher (the circle in the lower-left corner of your screen).
  • Scroll to the Linux Apps section and click on Visual Studio Code.
  • Visual Studio Code should open and be ready to use for your coding projects!

6. Set Up Visual Studio Code

When you first open Visual Studio Code, you may want to install some useful extensions and customize your setup:
  1. Click on the Extensions view icon in the Activity Bar on the side of the window (or press Ctrl+Shift+X).
  2. Search for and install the extensions you need for your programming language or project, such as Python, JavaScript, or HTML/CSS.
  3. You can also configure Visual Studio Code settings to suit your preferences, such as theme, font size, and more.

7. Create or Open a Project

Once you have Visual Studio Code set up, you can either create a new project or open an existing one:
  • To create a new project, click on File > New File or New Folder.
  • To open an existing project, click on File > Open Folder and navigate to the folder where your project is located.

8. Optional: Install Git for Version Control

If you plan to use Git for version control, you can install Git in the Linux terminal:
sudo apt install git
After installation, you can configure Git with your username and email:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"

9. Performance Considerations

Running Visual Studio Code on a Chromebook works well for many development tasks, but there are a few performance tips to consider:
  • If you are working on resource-heavy projects, ensure your Chromebook has sufficient RAM (8GB or more is recommended).
  • Running multiple apps alongside Visual Studio Code may affect performance. Try to limit background processes to free up resources.

10. Troubleshooting Common Issues

If you encounter issues while running Visual Studio Code on your Chromebook, here are some common problems and solutions:
  • Visual Studio Code Won’t Open: Ensure that your Linux environment is up to date by running sudo apt update && sudo apt upgrade in the terminal.
  • Extensions Not Working: Try reinstalling the extensions or check if the extension is compatible with your Linux environment.
  • Missing Dependencies: Run sudo apt --fix-broken install to resolve any missing packages.

11. Conclusion

Running Visual Studio Code on a Chromebook is a powerful solution for coding directly from your Chromebook. By enabling Linux (Crostini), you can set up Visual Studio Code quickly and get started with your development projects. This guide provided all the necessary steps to install, set up, and run Visual Studio Code on your Chromebook. Enjoy coding!