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
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

