Editor¶
Basic setup¶
For basic Lua work, almost any plain-text editor is enough.
Useful features are:
- Lua syntax highlighting
- visible indentation
- fast search across the repo
- easy file copy to the SD card or simulator workspace
Keep the setup simple at first. A lightweight editor with good search and file navigation is usually enough.
Examples of user-friendly editors:
Advanced Setup¶
If you want a more professional setup, use an editor with stronger code intelligence features.
Practical examples are:
- Visual Studio Code with the
Luaextension bysumneko - IntelliJ IDEA with the
EmmyLuaplugin
That gives you features such as:
- symbol completion
- inline help while typing
- jump to definitions
- better navigation across modules
Lua Language Server¶
For richer editing support, use Lua Language Server with the generated EdgeTX definition files from this project.
In VS Code, the practical setup is:
- Open the Extensions view.
- Search for
Luabysumnekoand install it. - Add this project's generated definition files to your workspace setup.
That gives you:
- completions for EdgeTX Lua APIs
- better type hints
- fewer mistakes when calling functions or building tables
Generated definition files from this project:
These files are generated by the docs system from the current API model and can be used as editor input for IntelliSense-style support.