How can I change @author tag configuration in eclipse in such a way that it takes the name I have specified?

Solution 1:

There are several ways of accomplishing this. Open up Eclipse Preferences, type in Templates as your Filter, then select Java->Code Style->Code Templates. In the Code Templates widget, expand the Comments widget:

Eclipse Preferences - Java Code Templates

Looking through the expanded selection, you can see that there are templates defined for Types and Methods, amongst others. Select whichever template you want to edit, then click 'Edit'. You can now change the template as you see fit, for example by adding @author ${user} or whatever else to it:

Eclipse Preferences - Java Code Templates - Methods

Click 'Ok' out of all the dialogs to complete and save.

Solution 2:

In the eclipse directory there is a file named: "eclipse.ini" open the file and add following line:

-Duser.name=desired name

after the "-vmargs" line

Solution 3:

Project->Properties->Java Code Style->Code Template->

There is link Configure workspace setting

Select Comment->Types

Edit your name or whatever you want. enter image description here

Solution 4:

You can go to the Windows/Preference. Type int "Template" in the search box and go to Java/Code Style/Code Templates. The area you are searching is in the "Comments" part.