Adding a standard comment header to all source files in eclipse

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

    In addition to Andrew Eisenberg's reply, here's what I found out about the Eclipse copyright tool. I found this to work best from all suggested solutions.

    Pluses:

    • Easy to update copyright years or licence header.
    • Easy to apply to the whole project or just parts of it.

    Minuses:

    • Does not work on all types of files. At least didn't work on JSP files for me.
    • You can not set up multiple licenses and apply them as you wish. There's only one licence.

    Customization (from preferences):

    Customization (from preferences)

    You can apply the license at the file or package level

    You can apply the license at the file or package level

提交回复
热议问题