Auto-Indentation

Indentation helps make code easier to read and understand. Indentation helps to visually separate different Block statements to show their hierarchical relationship. You can especially appreciate this when working with a for loop and if statements.

Select a block and click tab. This is very helpful trick in translator to get all the block commands aligned in the editor.

function main(Data) for i=1, 1000 do if i == 500 then trace(i) end end end

Before:

 

And after:

This is a very helpful technique for making your code easier to read and understand.

Related pages