Install Visual Studio Code on Raspberry Pi

Visual Studio Code

Visual Studio Code is a free source-code editor made by Microsoft.
Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git
It supports most popular coding languages including Python, JavaScript, and more.
Note: If you are using Raspberry Pi OS, you don't need to install this app. Just run "sudo apt install code" in the terminal. Pi-Apps will still continue to ship VSCode so that non-PiOS users can still have access to it.

To run: Menu -> Programming -> Visual Studio Code
To run in a terminal: code

Fortunately, Visual Studio Code is very easy to install on your Raspberry Pi in just two steps.

  1. Install Pi-Apps - the best app installer for Raspberry Pi.
  2. Use Pi-Apps to install Visual Studio Code.

Compatibility

For the best chance of this working, we recommend using the latest version of Raspberry Pi OS, which is currently version Bookworm.
Raspberry Pi OS has 32-bit and 64-bit variants, both of which will run on most Raspberry Pi computers, including the Pi 3, Pi 4, and Pi5.
Visual Studio Code will run on either PiOS 32-bit or 64-bit.

Install Pi-Apps

Pi-Apps is a free tool that makes it incredibly easy to install the most useful programs on your Raspberry Pi with just a few clicks.

Open a terminal and run this command to install Pi-Apps:

wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps/master/install | bash

Feel free to check out the Pi-Apps source code here: https://github.com/Botspot/pi-apps

Install Visual Studio Code

Now that you have Pi-Apps installed, it is time to install Visual Studio Code.
First launch Pi-Apps from your start menu:

Then click on the Programming category.

Now scroll down to find Visual Studio Code in the list.

Just click Install and Pi-Apps will install Visual Studio Code for you!

Pi-Apps is a free and open source tool made by Botspot and other contributors. Find out more at https://pi-apps.io