How can I edit default script when create new Java Script?

When I create new JavaScript on cocos creator editor, there are serturn code was already setted up.
Where and how can I edit it?

Thanks.
-Hiroki

Does someone know this?
I believe template.js should be somewhere.
-Hiroki

You need to install Visual Studio Code in order for you to edit the Javascript file.

Thank you for reply. But I’m not talking about that.

I already coding thousands of lines.
I’m annoying that I need to change template when I create new JavaScript file everytime. I want to edit template code at creating new JavaScript file, so that I can start coding quickly with my format of class setting of cc.Component and etc.

Thanks.

Found it.

  • Mac
    CocosCreator.app / Contens / Resources / static / templete / new-script.js
1 Like