How to change the automatically loaded code on new script file
How does one change the default code to be created when a new script is loaded. I want it to load all new files with my copyright info and header comments.
Answer by SarperS · Aug 07, 2016 at 11:09 PM
I blogged about on how to do both. Please take a look;
http://www.sarpersoher.com/my-unity-new-c-script-template/ http://www.sarpersoher.com/unity-script-template-keyword-replacer/
just wondering if you happen to have a list of different keywords I am hoping to find, Script path creation time creation year
if there are keywords for those that would be amazing
By default there are only (afaik)
"#NA$$anonymous$$E#"
"#SCRIPTNA$$anonymous$$E#"
"#SCRIPTNA$$anonymous$$E_LOWER#"
But on the second url, I'm showing how to define your own keywords and replace those keywords with whatever you want. Feel free to copy/paste it. You will get
#CREATIONDATE#"
#PROJECTNA$$anonymous$$E#"
#DEVELOPERNA$$anonymous$$E#"
#CO$$anonymous$$PANY#"
Which you can customize and/or add your own keywords.
Your answer
![](https://koobas.hobune.stream/wayback/20220612090338im_/https://answers.unity.com/themes/thub/images/avi.jpg)