Is there a way put a timestamp in the file header automatically when saving in Eclipse?

Posted by George on Stack Overflow See other posts from Stack Overflow or by George
Published on 2010-04-20T23:05:32Z Indexed on 2010/04/24 12:23 UTC
Read the original article Hit count: 253

Filed under:
|
|

I am a PHP developer using Eclipse PDT. I would like a timestamp put automatically in my file headers whenever I save the file. Maybe as a replacement of a variable. Let's say I use this header in a file:

/**
 * ${filename}
 * ${timestamp}
 */

When I save the file I would this to be replaced with:

/**
 * Myfile.php
 * 4/20/2010 19:04
 */

It would also be ok if there is a macro that would add a line at the very beginning of the file just containing a timestamp.

Anybody with an idea?

Regards, George

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about save