Home > Mobile >  Is there a way to update comments when saving an Eclipse file?
Is there a way to update comments when saving an Eclipse file?

Time:09-08

This isn't exactly a programming question, but my goal is to add a comment at the top of the class that shows when you last edited the file, updating when it saves. I know Eclipse can access the date and time, since adding a "Date Created:" comment was easy, but that's just editing the new file code templates so I would imagine it's not in the same area. I've been learning Java and Eclipse for about a year now, and this would be super helpful to keep track of files.

Here's a picture in case I wasn't clear

CodePudding user response:

No, not out of the box. Someone could write a plug-in to do it, but as the comments have mentioned, once you're past a trivial example, this is usually the job for a source control system.

  • Related