Getting started | ||
---|---|---|
![]() |
![]() |
|
LDT User Guide | Concepts |
For your code to be manipulated correctly by Lua Development Tools, it must be contained into an Eclipse project having a Lua flavour. In order to do this, you have to create a Lua Project, it will add Lua nature to your code.
In "File > New > Project...", select the right project type: Lua Project.
Enter a valid name, choose your Execution Environment, press "Finish", and voila!
Note: You might want to configure an Execution Environment.
Now that your project is created, you are ready to start working on your Lua scripts. In every project, there is a default source folder, named src. You can edit the main.lua file in it.
Source folders are imported, as they are the one processed to compute tooling information. That is to say if you write a module outside of a source folder, it will not be part of the accessible scope when you will try to reference it from another module or script ; thus, its content will not be available in e.g. code completion.
To run your Lua script, the file has to be contained in a Lua project and a default interpreter has to be created as explained in the
configure interpreters part.
If it is the case, you can simply right click on the file add select
Run As/Lua Application.
The
Run As menu creates a default launch configuration for the selected file and launch it.
![]() |
![]() |
![]() |
LDT User Guide | Concepts |