2 Replies Last post: May 5, 2014 8:28 PM by Andriy Bazanov  
Myles McNamara Newbie 1 posts since
May 3, 2014
Currently Being Moderated

May 3, 2014 2:13 AM

Auto update file header?

So after switching to PHPStorm from Sublime Text I am very happy with everything, except for one plugin I can't seem to find anything similar for PHPStorm.


What i'm looking for is something that will automatically update the header in files, specficially the date the file was last edited.


Here's a Sublime Text plugin:



I've looked at Live Templates, and standard templates, but that only works for new files and doens't update when the file is saved.  My first thought was to use a file watcher to update the last modified time, but can't seem to figure it out.


Any suggestions, thoughts, ideas, etc??  Thanks guys!!


Elena Pogorelova Expert 1,866 posts since
Oct 5, 2011
Currently Being Moderated
May 4, 2014 5:30 PM in response to: Myles McNamara
Re: Auto update file header?



there is no way to do this currently... Please vote for http://youtrack.jetbrains.com/issue/IDEA-60148

Normally this case is handled by a version control system when it has  keyword substitution feature (VCS will replace special tags with  user/time when you commit the code).

Andriy Bazanov Master 5,108 posts since
May 28, 2010
Currently Being Moderated
May 5, 2014 8:28 PM in response to: Myles McNamara
Re: Auto update file header?

Automatically -- no.


But you could use Referencer plugin to quickly (but manually) insert/update timestamp.

More Like This

  • Retrieving data ...