Introduction
Zerobrane Studio is a lightweight LUA IDE tool that supports code hinting, syntax highlighting, remote debugging, code analysis, debugging, and more. can go to the official website studio. zerobrane. com for download.
Auto-complete function
Here's how to get your code to complete auto-completion.
First, enter the interpreters folder to create a new LUA script file to configure your library's execution file.
Local exefile= "Execute file path" local resourcepath= "resource path" return { name = "Luaapp", description = "Luaapp", API = {" Baselib "," Luaapp "},--Note API Frun = function (self,wfilename,rundebug) local Workdir=self:fworkdir (Wfilename) if not getfullpathifexists (Workdir, ' Main.lua ') Then Displayoutput ("Can ' t find ' main.lua ' file in the current Project folder.\n") return end if Rundebug then Debuggerattachdefault ({runstart = Ide.config.debugger.runonstart = true}) end Local cmd = ('%s%s '): Format (exefile, ResourcePath) return Commandlinerun (cmd,workdir,true,true) end, Hasdebugger = True, Fattachdebug = function (self) debuggerattachdefault () end, Scratchextloop = True, takeparameters = True,}
Open the editor in the Project options last item select the name of the Lua script you created, F5 can start debugging, note that the portal file needs to be Main.lua.
Zerobrane Lua Script Editor Code auto-complete