score:107
Comments generation is configured in:
Main Menu -> Window -> Preferences -> Java -> Code Style -> Code Templates -> Configure generated code and comments
You can change directly the New Java files template: Code -> New Java files -> Edit
As of Eclipse 3.6 version, it is already configured that for new Java files ${filecomment}
is inserted, so it is probably better to edit it instead:
Comments -> Files -> Edit
score:17
If you want to add your comment a the top of the file (to add a copyright header), give a try to Eclipse Copyright Generator. There is a wizard that ask you what you want to include. Therefore you can add every kind of comment header.
After installation you get a new menu: Project > Apply Copyright....
In the include files field enter *.java
to reduce the set of files.
see also this answer
As indicated in the comments, there is an other tool provided by the Eclipse Fundation: Eclipse Copyright Tool (as part of their releng tools)
Source: stackoverflow.com
Related Query
- How can I add a default header to my source files automatically in Eclipse?
- How do you add a PHP framework to code completion/assist in Eclipse PDT and can the framework be added as default for all projects?
- How can I get Eclipse to store .class files in a folder outside the Project folder where I store the .java source files?
- How to add Google's Guava to eclipse so I can read the source code
- How can I add imported jar files to web-inf/lib in eclipse for my build?
- How can I add JFace source in Eclipse
- How can I add specific header file to index as if it was included in eclipse cdt?
- How can I get Eclipse to add a Default Package to an Existing Project?
- Using eclipse to edit C++ code. How do I automatically include a default header file without editing all the code
- What causes imported Maven project in Eclipse to use Java 1.5 instead of Java 1.6 by default and how can I ensure it doesn't?
- Adding a standard comment header to all source files in eclipse
- How to make eclipse automatically add braces to an IF statement?
- How can I add a generated Source Folder to my Source Path in Gradle?
- How can I add JAR files to the web-inf/lib folder in Eclipse?
- How can I make hidden files display in Eclipse Project explorer when using a RSE linked folder?
- How can I get Eclipse to index an entire C/C++ source tree that contains multiple "make projects"?
- How can I add build path items to Eclipse 3.5 using relative paths?
- How can I reset eclipse to default settings?
- How can we automatically generate comments for methods written by us in Eclipse RCP?
- How to manage license banners in source files of Eclipse projects
- How can I add current Eclipse project to git with EGit?
- How Can I Add the Apache POI Library in and Eclipse Project?
- How can I add an Eclipse Quick Fix for a custom Java marker?
- How can I format an entire source tree in Eclipse 3.4 (Ganymede)?
- How can I run a Maven webapp in Eclipse when I use profiles to populate properties files at build time?
- How can i add syntax highlight in eclipse for cakephp view.ctp files?
- How can I set Chrome as default external browser in Eclipse for Mac?
- How to add Syntax highlighting for .Vue files in Eclipse
- How do i add syntax highlighting in Eclipse for laravel blade files
- How to have Eclipse automatically open/preview files as I select them in Project Explorer
More Query from same tag
- Delete cvs tag from deleted file (Eclipse CVS)?
- Eclipse EGit: Push just created file
- Code compiling in eclipse but not on command line
- Codewarrior's command-line interface stops waiting for a dialog
- Eclipse PyDev bug when trying to comment out 300+ lines with """docstring"""
- I try to make a guess game and let user decide under what max number to guess
- How can I run my Selenium tests with Maven?
- Is there a Java IDE that is not as complicated as Eclipse?
- Can you tell if a C++ project has been buit previously in Eclipse
- What are the pros and cons of the SVN plugins for Eclipse, Subclipse and Subversive?
- Ubislate 7 C+ is not visible while running android appliaction in ADT
- Monitor tomcat in Bash until it finishes deploying war or application
- JAVA BEGINNERS Create and roll Dice
- No option to disable OpenGL2.0 in libgdx
- eclipse juno php - jump to implementation not working
- Android - SwipeRefreshLayout importing issue
- Eclipse project for running a BAT file?
- Darkest Dark theme does not work in Eclipse
- Ant fail and exit if current build has compile errors
- list.setOnClickListener
- Android: How to maintain backwards-compatibility?
- Error using Reflection "Class.forName" in Eclipse
- Configure Selenium Protractor on Ecplise
- Putting eclipse under version control
- Android - Show aparat videos in the application
- android sdk corrupted after again intalling the New Software in Eclipse
- Android API 21 only allows creation of empty activity
- Can't successfully load image from Assets folder in Android
- Getting socket connection error while trying to connect to hive from eclipse spring xml file
- Emacs Style "artist-mode" for Eclipse?