javaeclipsecode-templates

Configure Eclipse to add a comment header the top of new modules


How can Eclipse be configured to automatically add a comment header to the top of new classes that are created in a project?

/*
*  Name
*  Date of creation
*  etc.
*/

Solution

  • Edit in Preferences: Java -> Code Style -> Code Templates

    Choose Comments -> Files -> Edit: