将模板插入到 Eclipse 项目中的每个源文件中?
是否有工具、选项或脚本可以将自定义模板插入到 Eclipse 项目中每个现有源文件的标头中?`
一些背景信息
我最近开源了一个为大学作业。最初,源文件不需要任何明确的许可或作者信息。但现在我正在发布代码,我想将此信息放在每个 Java 源文件的标头中。
我知道 Eclipse 能够在每个新文件中插入自定义模板,从现在开始我将这样做。但我希望在大约 60 个现有 .java 文件中放置此标头。虽然这不是一个巨大的数字,但如果有更懒惰的方法的话,我真的不喜欢重复相同的剪切和粘贴操作 60 次。
PS我无法为这个问题想出更好的标签,欢迎提出建议。
Is there a tool, option or script to insert a custom template into the header of every existing source file within an Eclipse project?`
Some background information
I have very recently open-sourced a small application written for a university assignment. Initially the source files did not require any explicit license or author information. But now I am releasing the code I would like to place this information in the header of each Java source file.
I know Eclipse has the capability of inserting a custom template in each new file, and I will be doing this from now on. But there is around 60 existing .java files within which I wish to place this header. While that is not a huge number, I really don't fancy repeating the same cut and paste operation 60 times if there's a lazier way to do it.
P.S. I couldn't think up any better tags for this question, suggestions welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想查看 sourceforge 上的 JAutodoc。 http://jautodoc.sourceforge.net/
具体来说,请查看标题为文件头<的部分/strong>
希望这有帮助。
You may want to check out JAutodoc on sourceforge. http://jautodoc.sourceforge.net/
Specifically, check out the section entitled File Header
Hope this helps.