How do you change the default lua script template

Hi! I’m just getting to know the engine, and I’m wondering whether I can change the default script template - the script you get whenever you make a new script file. Removing all the comments like

– Add finalization code here
– Remove this function if not needed

is getting a bit tedious. :slight_smile:

No, I’m afraid you can’t change the template. Maybe in the new editor @Ragnar_Svensson

If so, I think we would need a more convincing use case for it. @Closure how many script files are you creating? It doesn’t seem like a really big issue to remove the comments? (Or select-all and then delete everything)

2 Likes

It’s not that big of an issue, just a small QoL improvement. I think I’ll just write a macro for it then.

1 Like

@Ragnar_Svensson, I can’t remember and I don’t have a computer available to test: will the new editor provide some kind of code completion for the script life cycle functions?

Of course! :slight_smile: But they will be in the global namespace together with the other globally accessible functions, so no way to easily distinguish them from the others without actually reading the docs.

2 Likes