How to auto update "last edited" date in comment?

In my doc templates I have a field for last edited,
Which currently we must manually update.

Does PHPstorm have any way to  have this date automatically update on the date when saving a file that uses this template?


Hi Matthew,

Any luck with this? I'd like to do the same.


My thought right now would be to create a bash script that uses sed to do this. Maybe it can be run with the run tool after commit -


You can create a new live template for inserting the current date (see an example here) and then create a macro which findes the required comment with the old date and updates it with the current one.


Please sign in to leave a comment.