Adding a standard comment header to all source files in eclipse

后端 未结 6 983
我寻月下人不归
我寻月下人不归 2020-12-13 08:19

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, comp

6条回答
  •  温柔的废话
    2020-12-13 08:57

    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/
    

提交回复
热议问题