How to Install Visual Studio Code on Raspberry Pi

Microsoft has a version of Visual Studio Code which will run on the Raspberry Pi OS — formerly known as Raspbian. You can even download it from the APT (Advanced Packaging Tool). And it’s simply 2 lines of code to install:

sudo apt update
sudo apt install code

Afterward, you can launch it from the Programming menu in the GUI or by typing code in the terminal.

And the really nice thing about VS Code being in the APT is that you can update it like any other package on your Pi:

sudo apt update
sudo apt upgrade code