Tell me how you can automatically generate and substitute comments in Eclipse.

The following interests: it is necessary to substitute at the very beginning of the class / file a specific comment with the name of the author and the date of the last change. I understand that it is necessary to dig in Window-> Preferences-> Java and Project-> Properties, but then I have difficulties ...

UPD: Found plugin http://jautodoc.sourceforge.net/. It seems to have the functionality I need.

  • as an option, you can create a file for the ant and replace the properties when copying values ​​specified from the file during the build. or make on the same ante a script for the check with the previous replacement of the current date and version - jmu

1 answer 1

Java -> Code Style -> Code Templates , there are global settings and for each project separately.

  • I understand, but can you tell me exactly how to include the date of the last change, so that it is automatically substituted when saved? - korwru
  • Yeah, I do not know this. Apparently, that plugin is your solution. - yozh