向eclipse中的所有源文件添加标准注释标题 [英] Adding a standard comment header to all source files in eclipse

查看:151
本文介绍了向eclipse中的所有源文件添加标准注释标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在一个地方添加标准标题注释,它将适用于我项目中的所有源文件?标题将包含我的名字,联系方式,公司,许可证等。

解决方案

如果您正在寻找一个有用的工具Eclipse集成(和一个很好的GUI),我建议: Eclipse版权生成器



这将添加:




  • 一个新的面板在首选项(基于全球或项目)使用:
    菜单> Windows>首选项>常规>版权

  • a菜单菜单>项目>应用版权...

  • 一个非常棒的向导,有许多选项和一些默认的开源许可证模板(Apache,EPL,...)



    • 我只是用eclipse 3.6尝试过,它的工作正常。



      有一个更新站点来安装它: / p>

        https://dl.bintray.com/jmini/Eclipse-Copyright-Generator/ 


      Is there a way to add a standard header comment in one place and it will apply to all my source files in my project? the header would contain my name, contact details, company, license etc.

      解决方案

      If you are looking for a tool with a good Eclipse integration (and a nice GUI), I suggest: Eclipse Copyright Generator

      This adds:

      • a new Panel in the preferences (global or project based) with: Menu > Windows > Preferences > General > Copyright.
      • a Menu Menu > Project > Apply Copyright...
      • a realy nice Wizard with a lot of options and some default template for Open-Source licence (Apache, EPL, ...)

      I just tried it with eclipse 3.6 and it work fine.

      There is an update site to install it:

      https://dl.bintray.com/jmini/Eclipse-Copyright-Generator/
      

      这篇关于向eclipse中的所有源文件添加标准注释标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆