I created several Java methods that indirectly related. Question is, can I create some hyperlink between those methods as reference? I am using Eclipse for Java IDE.
You can use the JavaDoc @see tag:
/**
* @see MyClass#myMethod()
*/
This generates a hyperlink in your JavaDoc.
In Eclipse, code completion also works in comments and can be used to create links. When you start typing the name of a class, hit Ctrl + Space to get a list of matching classes. It will create an @link
tag for that class. Adding a #
behind the name and repeating the autocompletion shortcut gives you a list of methods of that class. For methods of the same class you are working in, just type #
and hit auto completion.
Clicking on a class or method name in the comment while holding Ctrl will let you jump to that class or method, even without the @see
or @link
tags.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With