Hey folks ![]()
You can install it from the marketplace: https://plugins.jetbrains.com/plugin/29184-defold-support.
More details on its README: GitHub - aridclown/Intellij-Defold: Defold coding and debugging support in IntelliJ · GitHub
So far, it supports:
Project awareness – Detects Defold workspaces and keeps paths in sync.
Smart Lua editing – EmmyLua2 + LSP4IJ provide completion, annotations, syntax highlighting, linting, navigation, refactors, and other editor goodies for your Lua scripts.
- Defold API annotations are provided by defold-annotations. Special thanks to @astrochili for providing them so smoothly

- Defold API annotations are provided by defold-annotations. Special thanks to @astrochili for providing them so smoothly
Script templates – Create scripts from IntelliJ with the expected boilerplate.
Debugger – Full mobdebugexperience without starting the Defold editor: conditional breakpoints, run-to-cursor, expression evaluation, watches, inline values, call stacks, and coroutine support.
Build + Run + Debug – Trigger clean, build, run, and debug from IntelliJ with automatic engine launching and port management.
Hot reloading – Reflect changes to Lua scripts with a simple hotkey.
Multi-platform – Works on Windows, macOS, (Linux untested).
Why?
As someone who has been using IntelliJ for over a decade, when I first started exploring Defold, I found it a bit challenging to adapt to VS Code.
Although I really appreciate all the effort the community has put into VS Code, I’ve never quite felt at home with that editor.
Anyways, it felt like the perfect time to start an IntelliJ plugin that goes a little beyond code highlighting.
No wheels reinvented?
I was sure to verify that we didn’t already have something started in the open-source community (GitHub), but I couldn’t find anything.
The projects I found are mainly focused on type checking, syntax highlighting, Lua annotations, and autocomplete:
- IntelliJ-EmmyLua → the most mature plugin for Lua development in IntelliJ.
- Most people use EmmyLua (version 1), which is great. However, it has a few drawbacks, particularly in terms of performance.
- IntelliJ-Luanalysis → an EmmyLua fork for statically typed Lua.
- It’s not been maintained for a while, it doesn’t work in the latest versions of IntelliJ, and most of its features are already supported by EmmyLua2.
- @d954mas’s Defold-api-emmylua → a Defold API annotations generator for IntelliJ.
- I wanted to remove the friction of manually having to generate these whenever a new Defold version pops up.
However, I wanted something more comprehensive, specifically that allowed me to leverage IntelliJ’s excellent debugging features. So I decided to make it from scratch.
Why EmmyLua?
The ‘Defold Support’ plugin is built on top of Intellij-EmmyLua2, which is much faster than its first version, has better support for type checking, supports various Lua versions (including Luajit), and leverages LuaLS instead of local Lua annotations for code completion, syntax highlighting, error detection, code navigation, etc.
It’s a mature and well-maintained ecosystem. The repository owner is super responsive, so whenever we hit a roadblock, we can help improve their repository (I’ve done it a few times already). Maturing Lua in the IntelliJ ecosystem means Defold in IntelliJ benefits as well.
What now?
While I made sure to test the plugin extensively, I’m sure I missed some important scenarios or didn’t catch all the bugs.
If you enjoy coding with IntelliJ as much as I do, I would appreciate your input and feedback on testing the plugin. Please share how it works with your Defold workflows, any missing features, desired additions, or potential bugs.
For instance, I haven’t tested it on Linux yet, so Linux users would be especially helpful

