Friday, 6 January 2017

How to add author name in eclipse automatically for new java classes and existing classes:

Adding author name in eclipse automatically for new classes and shortcuts for existing classes.

Shortcut for existing java classes::

Shift + Alt + J will help you add author name in existing file.


Adding author name for New classes::
In Eclipse, select Windows -> Preferences -> Java -> Code Style -> Code templates -> open Comments section (in  right-hand-side-panel) ->  click on Types:

How to attach Java JDK Source code in Eclipse IDE

In this article shows you, how to attach the JDK Source code into Eclipse IDE.


In Eclipse, select Windows -> Preferences -> Java -> Installed JREs , expands rt.jar, select “Source attachment” and find the src.zip from your disk drive.