Editing script default template

Is there a way to edit the default script template when adding a new asset of type Script?

I want newly made scripts to start with my coding standards without having to do it manually every time.

Unfortunately, not yet.

As a workaround, you could use a text expander to paste your custom template when you type:

pc`

@will @vaios do you think it would be an easy (and secure) change to reference the scriptBoilerplate var (editor.js) as an editor object property?

Making it accessible in some part of the global scope will allow us to monkey patch this file and do what @jamesgames proposes.

1 Like