I've just installed this Copyright wizard plugin for managing copyright disclaimers in my Eclipse projects. I discovered it thanks to this post.
I set it up and all works fine:
Now I have the following problem:
When I create a new file inside the project, the copyright isn't added by default. How can I solve this?
It sounds like you're looking for Eclipse's Code Templates
feature. In the version of Eclipse I have handy, it's found through Preferences -> Java -> Code Style -> Code Templates.
I have a feeling that you will be most interested in either the New Java files
(found under Code) or Files
(found under Comments) template.
There is corresponding functionality for XML files under Preferences -> XML -> XML Files -> Editor -> Templates (look at the xml declaration
template), and for Ant files under Preferences -> Ant -> Editor -> Templates (Buildfile template
). I am willing to bet that there are similar templates for pretty much every other language Eclipse can be used with.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With