Timestamping of files possible?

Hi there,

I was wondering if the following is possible in IDEA:

Whenever you save a file, the current timestamp is inserted in some comment,
e.g. if you specify:

/**

  • Last modified: %t

*/

then %t is replaced by the current timestamp whenever you save.

Is that possible?

Thank you,
Philipp


0
4 comments
Avatar
Permanently deleted user

It should be pretty easy to write a plugin that does this. I doubt it'll
end up as core functionality in IDEA however since it's quite a
specialised requirement.

Philipp Robbel wrote:

Hi there,

I was wondering if the following is possible in IDEA:

Whenever you save a file, the current timestamp is inserted in some comment,
e.g. if you specify:

/**

  • Last modified: %t

*/

then %t is replaced by the current timestamp whenever you save.

Is that possible?

Thank you,
Philipp

0
Avatar
Permanently deleted user

Use Ant and it's filtering.

Tony Morris

"Philipp Robbel" <philipp_robbel@usa.net> wrote in message
news:bq5udv$b00$1@is.intellij.net...

Hi there,

>

I was wondering if the following is possible in IDEA:

>

Whenever you save a file, the current timestamp is inserted in some

comment,

e.g. if you specify:

>

/**

  • Last modified: %t

*/

>

then %t is replaced by the current timestamp whenever you save.

>

Is that possible?

>

Thank you,
Philipp

>
>


0
Avatar
Permanently deleted user

Won't that set timestamp to last build, not last save?

0
Avatar
Permanently deleted user

good point, didn't think too hard about it obviously.

Tony Morris

"Jacob Bay Hansen" <jacob.bay.hansen@rain.dk> wrote in message
news:20190641.1070015130617.JavaMail.javamailuser@localhost...

Won't that set timestamp to last build, not last save?



0

Please sign in to leave a comment.