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?

5 comments

Hi Matthew,

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

0

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 - http://www.jetbrains.com/phpstorm/webhelp/running-command-line-tool-commands.html

0

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.

0

Please sign in to leave a comment.