Version 1.71 is now available! Read about the new features and fixes from August.
Dismiss this update
You can run Visual Studio Code on Raspberry Pi devices.
By downloading and using Visual Studio Code, you agree to the license terms and privacy statement.
Visual Studio Code is officially distributed via the Raspberry Pi OS (previously called Raspbian) APT repository, in both 32-bit and 64-bit variants.
You can install it by running:
sudo apt update
sudo apt install code
After installing the VS Code package, you can run VS Code by typing code
in a terminal or launching it via the Programming menu.
Your Raspberry Pi should handle updating VS Code in the same way as other packages on the system:
sudo apt update
sudo apt upgrade code
You can always check when a new release is available in our Updates page.
VS Code is supported on these Raspberry Pi models running a 32-bit or 64-bit version of Raspberry Pi OS:
While 1 GB of memory (RAM) meets the minimum system requirements, users will benefit from installing VS Code on a Raspberry Pi 4 with more memory.
First-generation Raspberry Pi modules and Raspberry Pi Zero are not supported as they only include an ARMv6 CPU.
VS Code on Raspberry Pi 4 may be slow with the default setup. A workaround is to disable hardware (GPU) acceleration in VS Code:
argv.json
file using the Preferences: Configure Runtime Arguments command."disable-hardware-acceleration": true
.The "disable-hardware-acceleration": true
runtime argument switch has the effect of passing the --disable-gpu
command-line argument on VS Code startup.
Once you have installed VS Code, these topics will help you learn more about it: