In eclipse, at least it works to use any of the following, depending on whether you want additionally encoded text before or after the link.
{@code {@link foo} {@code {@link foo} {@code bar} {@code baz}{@code {@link foo} {@code baz}{@code {@link foo} {@code bar}
For this to work, you need unsurpassed braces and separate @code annotations. If you don't want a space between foo and bar in javadoc, you can remove the space before the last @code , although this cannot be done for the space between baz and foo .
The JavaDoc parser, which eclipse successfully uses, converts it into a link with code formatting, so it is good, at least for temporary use. However, this is not entirely best practice and may be changed in the future, so you should probably use the Paulo solution if you write code that will continue in a year.
source share