views:

129

answers:

1

Hi.

I'm trying to figure out how I can have a comment header automatically added to all new source files in my eclipse java project. I've looked around but I haven't found a simple solution to automate this process. I gave JAutodoc a try, and even though it does allow me to specify a header I still had to tell the plugin manually to inject the header and it didn't seem very fond of my keyword-subsitution.

I'm by the way using the Maven2 plugin for Eclipse for most of my projects if that's any help.

Any tips?

+2  A: 

Main Menu -> Window -> Preferences -> Java -> Code Style -> Code Templates -> Configure generated code and comments: -> Code -> New Java files -> Pattern

Is this what you want?

Gabriel Ščerbák
Thanks, that seems to do the trick. I'll take a closer look at, I should be able to figure it out now that I've got directions.
John