Sublime Defold is a powerful Sublime Text plugin that helps you develop Defold games with Sublime Text.
Hot Reload: Reload on save or you can run the "Defold: Reload" command Snippets and Completions: Helpful code completion for common commands and patterns
You must have astrochili/defold-annotations setup in your Defold project if you want the types in the snippets to work correctly.
- Open Sublime Text.
- Go to Tools > Command Palette... (or press Ctrl+Shift+P / Cmd+Shift+P).
- Type Package Control: Install Package and press Enter.
- Search for Defold and press Enter to install.
- Navigate to your Sublime Text Packages directory. You can find this by going to Preferences > Browse Packages... in Sublime Text.
- Run
git clone https://github.com/james2doyle/sublime-defold Defoldin that folder
# change to the directory found with "Preference: Browse Packages", then clone
git clone https://github.com/james2doyle/sublime-defold.git DefoldYou can configure the defold_hot_reload on the project level to enable reloading on save.
In your .sublime-project file:
The plugin will check your .sublime-project so the project settings before trying to send a hot reload to the editor.
TODO
- Open Tools > Command Palette... (Ctrl+Shift+P / Cmd+Shift+P).
- Type Defold to see available commands:
- Defold: Reload: Reload the running build.
You can set up custom key bindings for frequently used commands. Go to Preferences > Key Bindings and add entries like this:
[
{ "keys": ["ctrl+alt+g", "ctrl+alt+c"], "command": "defold_reload" }
]defold-reload-on-save.py: Main plugin entry point and core logic for sending hot reload commands.AGENTS.md: Helper for AI coding tools.pyproject.toml: Project configuration for dependency management and build tools.snippets/: Folder with all the Sublime snippets.
{ // ... folders array with paths, etc. "settings": { "defold_hot_reload": true // ... the rest of your settings } }