Getting started

Create a project

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.

Edit a Lua source file

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.