Davide's Blog

How to add Buildozer build system to Sublime Text

This is a mobile optimized version of this page, view original page.

If you develop Android applications with Sublime Text, you might find it useful to use its built-in building system to debug your application instead of switching every time to a terminal. I made a simple build system config file which allows you to do the most common operations without leaving the editor.

The build system

  1. First, open Tools > Build System > New Build System…. A new file will open.
  2. Paste the content of this gist into the window.
  3. Go to Save; add a new directory named Buildozer; save the file into that directory and name it Buildozer.sublime-build

Done! Now go to your Buildozer application, reopen Tools > Build System and you should find a new option waiting to be enabled!

The keyboard shortcuts

Now, if you want my custom keyboard shortcuts too, you need to follow just a few more steps.

  1. Go to Preferences > Key Bindings – User.
  2. Paste the content of this gist into that file.
  3. Save and done!

The keybindings are the following:

(note: Super is usually the “Windows” or the “Command” key in most keyboards, unless you changed its logo like I did 😉 )

Kv Syntax Highlighting

Just a little cherry on top: syntax highlighting on Kv. The Kivy team has already prepared that for us: let’s install it!

  1. Go to Tools > New Plugin…
  2. Delete the default content of the file and paste the content of this file.
  3. Go to Save; add a new directory named Kivy and save this file into it; name it kivy.tmLanguage

Done! Now go to your .kv, press the syntax highlighting menu on the bottom right and select Kivy Language 🙂

Non-advertised versions of the previous links

It would be really nice from you if you would use the advertised links, but if you don’t want to, I understand: I hate ads too! 🙂 But they support my work!

Show/hide the gist

Have fun! 🙂