In all editors, we recommend IntelliJ IDEA Not only with the must-be syntax highlight, code navigation and auto completion, the most powerful feature is syntax check. With it, you can save a lot of time on debugging.
After installation, start intelliJ IDEA In File -> Settings Input plugin at the upper left search box and press Enter. Click the upper right Marketplace In Marketplace search box, input lua and press Enter. Click EmmyLua and install.
Restart intelliJ IDEA after installing lua plugin.
After restart, start new project in File -> New -> Project. Select Lua at left and select LuaJ for Project SDK.
Use IntelliJ IDEA
If there is any error, there will be tildes (~~~~~) under the filename.
Press F2 can jump directly to the place of next Error or Warning. The related message will show at the bottom of the window.