简体   繁体   中英

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM