It looks like you are looking for Eclipse Code Templates . In the Eclipse version I have the convenience, it is found using Preferences β Java β Code Style β Code Templates.
I have the feeling that you are most interested in either the New Java files template (found under the code) or Files (found in the comments).
There is a corresponding functionality for XML files in the Settings section β XML β XML files β Editor β Templates (see the xml declaration template) and for Ant files in the Settings section β Ant β Editor β Buildfile template . I bet that there are similar patterns for almost any other language with which you can use Eclipse.
source share