Coding aids

Today I’ve been coding quite a lot (several thousands of lines) and noticed that:

  1. Block completion. It would greatly help if when I type the code below ( [*] shows cursor position) and hit “Enter”…

     if ... then[*]

… the editor would add “end” at the appropriate position under “if”, add an empty line between them and place the cursor with the correct indentation:

    if ... then

The same goes for function definitions, loops and everything else that requires “end”.

  1. Comment completion. When you write comments spanning multiple lines, I’d say it would help that when you press “Enter” inside the comment, it automatically starts the new line with “–” correctly aligned with “–” on the previous line.


Thanks @alg, those are really good suggestions. Could you perhaps add them as feature requests on the issue tracker here: ?

That will keep them in our sights when we work on updates to Codea.

The first suggestion - automatically adding “end” is something I’d like to put in. But I don’t want to get the feature wrong and have it adding “end” when it’s inappropriate.

Sure. Added two tickets (one anonymously by accident):