change author name in eclipse

some time you need to change the author name of the files you create by eclipse rather than the system user name.

to do so:

1- open eclipse.ini file in the eclipse directory.

2- add the following line after -vmargs line

-Duser.name=your name

References:

http://dev.eclipse.org/newslists/news.eclipse.newcomer/msg07148.html

Published by Mostafa

Entrepreneur, Designer, Reader and Thinker. I love simple solutions for big problems. CEO and Co founder of OCTPOS. I am lucky that i have met a lot of wonderful people in my way. Mostafa Hashem

47 thoughts on “change author name in eclipse

  1. You can also change it from here:
    Preferences -> Java -> Code Style -> Code Templates -> Comments
    Edit the Comment: Types and change $(user) to your desired author_name.
    I.e.:
    @author $(user) -> @author new_author_name

  2. author name does not show up in newly created files, how to make it added as comments while creating the file, is thre any other setting to be done, may be enable it somewhere

    1. Hello Prem,

      you can make your eclipse to add a comment with author name in all your new class by doing the following:
      – open window menu
      – choose preferences
      – from the tree on the left choose “Java -> Code Style -> Code Templates”
      – under “configure generated code and comments” choose “comments”
      – choose “types” from the comments tree
      – then under the “pattern” text area write the following:
      /**
      * @author ${user}
      *
      * ${tags}
      */

      don’t forget to check the check box “automatically add comments for new methods and types”.

      i wish you find this reply is useful.

      best regards,
      Mostafa

  3. thanks! works fine for new classes. for simplified adding the author in existing classes create/edit the template named “@author” under preferences > Java > Editor > Templates. set pattern from “@author ${user}” to “@author [your_name]”. set context to “Javadoc” and check “Automatically insert”.

  4. I don’t even know the way I stopped up here, however I thought this post was great. I do not recognize who you’re but
    certainly you are going to a famous blogger if you happen to are not
    already. Cheers!

Leave a reply to Anonymous Cancel reply