Any way to edit class template?

Are there any plans to add template functionality, or at least be able to edit the default class template? I tend to set classes up a little differently than the auto template which means I have to make the exact same edits every time I need a new class. I could just type it all out from a blank file but that defeats the purpose of a template to begin with. Thoughts??

Great feature idea — I’ve logged it in our board. You can’t do it at the moment but we’ll have to build a system for it

1 Like

@kizik - raised my curiosity - what additions/extensions have you got in mind ?

I wouldn’t necessarily say it’s an extension or a modification to what’s already there. I would just like the ability to customize the template.

I use 2 space tabs instead of 4, the template does not respect this.
I usually include the update method in all my projects
There are a few other tweaks I tend to stick to, like removing the touched method. I’ll only add that when needed. It would be nice to bake those into either the default template or a simple way to build them and pick which template to base from.

This is a QOL thing, not a big deal at all.

1 Like

@kizik - thanks for the feedback. I know what you mean about setting up project templates. I have a couple that I use rather than the default template.

To add my two cents — more often than not I’m adding y, w, h and title to the x that is in the class template. Quite often I am creating a class that uses x- and y-location along with width, height and title.

As noted above, it’s a QOL issue.

Thanks.

One of my first lines in the init function is

SW, SH, CW, CH = WIDTH, HEIGHT, WIDTH//2, HEIGHT//2

That’s because they are used so frequently and to minimise calculations.