How to auto update "last edited" date in comment? Follow
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?
Please sign in to leave a comment.
Hi Matthew,
Any luck with this? I'd like to do the same.
Nope, still nothing :(
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
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.
Created a new feature request.
http://youtrack.jetbrains.com/issue/WI-17907
Hi guys.
Please I tried updating my datetime automatically but it doesn't seem to work.
What I wanted was a start date(which is a day before) and an end date (which is the present date). And what it to automatically update when I run the code
Unfortunately, the feature request from the comment above (it has IDEABKL-7178 name now) was backlogged and still unresolved. As I can get, the main blocker there is in a proper integration with VCS.