Local Visual Studio Code - spaceshiptrip/raspberrypi GitHub Wiki

Visual Studio Code

My usual code editor is Visual Studio Code on my MacBook Pro, and unfortunately it doesn’t work on the iPadOS. However it does work on the Pi4 though it’s a bit messier to install.

VSCode is not a package not in the standard repositories. In addition, while you can download the .deb package from the VSCode site, they only have it in amd64. Remember, our nifty little Pi4 is an ARM machine so this wouldn’t work. Fortunately the Internet is full of helpful people and one such person have made all the necessary scripts to perform an easy install of VSCode.

Just follow these steps on the Pi4:

  1. Execute this command to set things up:
curl -s https://packagecloud.io/install/repositories/headmelted/codebuilds/script.deb.sh | sudo bash
  1. Continue with this second command to do the actual installation:
curl -L https://code.headmelted.com/installers/apt.sh | sudo bash
  1. You should have a working version of VSCode after this. Just go to any directory in command line and do this to open up VSCode.
code-oss .