Tested on:Kubuntu Linux 14.04
Prerequisites:Raspberry Pi with Raspbian Jessie and internet connection (see steps 1-7 in the Introduction)
Sublime Text 3
Hardware:Host Computer

Using a host computer for coding on the Raspberry Pi

The amazing text editor Sublime Text 3 supports custom python plugins, so lets use that to implement a scp copy to the Raspberry Pi per hotkey. This allows to code on the host and execute the code on the Raspberry very quickly.

Start Sublime and click on ToolsNew Plugin and replace the files content with

ABSOLUTE_HOST_PATH: working directory on the host
ABSOLUTE_RASPI_PATH: working directory on the Raspberry Pi
RASPI_IP: as noted from the headless or obtained with the Angry IP Scanner

Then, click on Preferences, then Key Bindings - User and add

After saving both files, pressing crtl and . together shoves the project data onto the Raspberry Pi. Then, the code on the Raspberry could be executed in a ssh terminal. The plugin will work only if exchange SSH keys between host and raspberry.

The plugin is located in the directory ~/.configure/sublime-text-3/Packages/User.

For information on building a more complex plugin, checkout the great tutorial at urbangiraffe.com.

Alternatively, its possible to setup a private Git Repository on the Raspberry Pi.

Sublime Text 3 configuration: http://www.knight-of-pi.org/basic-sublime-text-3-configuration
File transfer with SCP: http://www.knight-of-pi.org/scp-copy-linux-raspberry/
Raspberry Pi Headless: http://www.knight-of-pi.org/headless-a-raspberry-pi-without-peripherals-over-ethernet
Angry IP Scanner usage: http://www.knight-of-pi.org/sniff-a-raspberry-angry-ip-scanner
Remote access with SSH: http://www.knight-of-pi.org/remote-control-your-raspberry-pi/
SSH key exchange: http://www.knight-of-pi.org/password-free-login-exchange-ssh-keys
Urbangiraffe plugin tutorial: http://urbangiraffe.com/2011/08/13/remote-editing-with-sublime-text-2
Private Git repository tutorial: http://www.knight-of-pi.org/arrr-my-treasure-a-private-raspberry-pi-git-repository/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.


  1. I just came here following the link from UrbanGiraffe’s website. Is this still working?

    • Hey Laura,
      it should, but i saw that some characters got messed up and fixed that.
      However, i do not use this shortcut anymore since i’m working now with private git repositories, which gives a more flexible setup.

Leave a Reply to Laura Cancel reply

Time limit is exhausted. Please reload CAPTCHA.