Adding a standard comment header to all source files in eclipse

后端 未结 6 1003
我寻月下人不归
我寻月下人不归 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 09:07

    The project that @Jmini link (Eclipse Copyright Generator) seems dead, you can use this plugin to add the headers: JAutoDoc, it's very easy to use and have a lot of utilities for javadoc.

    You need to specify a licence in project|general > Preferences > java > JAutodoc > FileHeader and later in the project use: project > JAutodoc > Add Header, make sure the option Replace Existing Header is on.

    The template is writing using Velocity, so you can add all the information you need as variables.

提交回复
热议问题