如何自动添加“上次编辑”在Java类文档中? (在日食中?)
JavaDoc 中有一些时间戳,例如 lastedited ----
。有没有办法在我编辑和保存文件时自动输入这些详细信息?
目的不是SEE
最后编辑日期,而是在javadoc中SHOW
它。当我完成编辑后,我将发布它。当我上次编辑文件时,我不想自己在每个类的 Javadoc 中编写
There are some time stamps in JavaDoc like last edited ----
. Is there a way to enter these details automatically whenever I edit and save a file?
Purpose is not to SEE
the last edit date but SHOW
it in javadocs. When I have finished editing and I am going to publish it. I don't want to write in every class's Javadocs myself when I edited the files last
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您使用 eclipse 作为 IDE,上面的插件可能会有所帮助。如果您通过 google 搜索,其他 IDE 可能也存在类似的插件
Above plugin may help if you are using eclipse as IDE. Similar plugins probably exists for other IDEs as well if you search it through google
不。无论有没有插件,Eclipse 中都没有这样的功能。
No. There is no such feature in Eclipse with or without any plugin.
然而,更好的解决方案可能是在代码上使用版本控制。您不仅可以看到最后编辑的日期,还可以看到您进行更改的每个日期、代码的每个版本,并且希望还可以看到相关的注释。
Possibly, however a better solution might be to use a version control on your code. Not only will you be able to see the last date edited, you would be able to see each date you made a change, each version of the code, and hopefully a relevant comment as well.