Software: VS Code & VSCodium - Pi-Band/docs GitHub Wiki

Visual Studio Code (VS Code)

Visual Studio Code is a free, cross-platform code editor developed by Microsoft.

More information: https://code.visualstudio.com/

  1. Open the Recommended Software tool (Raspberry Pi menu > Preferences).
  2. Search for Visual Studio Code, and tick the box in the Install column.
  3. Click on the Apply button.

VSCodium

VSCodium is a community-driven, freely-licensed binary distribution of Microsoft’s editor Visual Studio Code, with telemetry disabled entirely and stripped of proprietary Microsoft features e.g. Live Share, Azure integrations.

VSCodium doesn’t have direct access to the Microsoft Visual Studio Marketplace due to licensing restrictions, but you can enable it manually or use vendor-neutral and publicly hosted open source alternative such as the Open VSX Registry.

More information: https://vscodium.com/

  1. Add GPG key for VSCodium's repository to APT (Advanced Package Tool).

    wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | sudo dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
    
  2. Add the repository to APT.

    echo 'deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg] https://download.vscodium.com/debs vscodium main' | sudo tee /etc/apt/sources.list.d/vscodium.list
    
  3. Update APT.

    sudo apt update
    
  4. Install VSCodium.

    sudo apt install codium
    

    Once installed, VSCodium can be found in Raspberry Pi menu > Programming.

References


Using Visual Studio Code/VSCodium without installing on Raspberry Pi

Accessing files on Raspberry Pi from another/remote computer that is on the same network as your Raspberry Pi via Visual Studio Code/VSCodium and SSH.

You will need to have either Microsoft's Remote - SSH extension for Visual Studio Code or jean413's Open Remote - SSH extension for VSCodium installed. In Visual Studio Code/VSCodium on your remote computer, open the Extensions panel in the primary sidebar using Shift + Command + X (Mac) / Ctrl + Shift + X (Windows/Linux), search for the relevant extension and install it.

  1. In Visual Studio Code/VSCodium on your remote computer, open the Command Palette, using Shift + Command + P (Mac) / Ctrl + Shift + P (Windows/Linux).
  2. Search for Remote-SSH: Connect to Host...
  3. Enter your username and hostname for your Raspberry Pi e.g. [email protected].
  4. When prompted, enter your password for your user account on your Raspberry Pi.
  5. Select the directory to open.

Using remote Python kernel in Visual Studio Code/VSCodium

  1. On your Raspberry Pi, start Jupyter Notebook or Jupyter Lab. This can be on the Pi or in Docker container.

  2. On another computer that is on the same network as your Raspberry Pi, open a new or existing notebook in VSCodium or Visual Studio Code.

  3. Click the Select Kernel button (top right hand of VSCodium/Visual Sudio Code window), and select Existing Jupyter Server (the options will appear in the address bar).

  4. Enter the URL of your Jupyter Notebook or Jupyter Lab running on your Raspberry Pi.

  5. Enter the password or token for your Jupyter Notebook or Jupyter Lab.

  6. For Change server display name, accept the given name or delete it.

  7. Select Python 3 (ipykernel).

  8. Verify by putting the following code in a cell and running the cell.

    import platform
    platform.uname()
    

    The code will output the information about the platform on which the code is running -- the system name, name of the machine on the network, release, OS version and machine name e.g.:

    uname_result(system='Linux', node='raspberrypi', release='6.12.25+rpt-rpi-2712', version='#1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30)', machine='aarch64')
    

    The node name should match your Raspberry Pi's hostname.

⚠️ **GitHub.com Fallback** ⚠️