Accepted answer

comments generation is configured in:

main menu -> window -> preferences -> java -> code style -> code templates -> configure generated code and comments

you can change directly the new java files template: code -> new java files -> edit

as of eclipse 3.6 version, it is already configured that for new java files ${filecomment} is inserted, so it is probably better to edit it instead:

comments -> files -> edit


if you want to add your comment a the top of the file (to add a copyright header), give a try to eclipse copyright generator. there is a wizard that ask you what you want to include. therefore you can add every kind of comment header.

after installation you get a new menu: project > apply copyright....

in the include files field enter *.java to reduce the set of files.

see also this answer

as indicated in the comments, there is an other tool provided by the eclipse fundation: eclipse copyright tool (as part of their releng tools)

Related Query

More Query from same tag