My problem is that every time I insert a @link
or similar in my Javadoc and complete a class, it inserts the full package path in front of it, even thought the class is already imported. For example if I have
import java.util.List;
and I write {@link Li
in some Javadoc, and then completes that by choosing List<E>
in the popup that appears, it still completes it to {@link java.util.List}
. I'd actually prefer it to be {@link List}
in any case, and then have the class imported automatically in any case. Event though I don't need it in the code.
Now why is that? Well, I read the Javadoc in my Java files, I rarely read my imports.
I use IntelliJ IDEA 13.1.3.
Open the Project Structure dialog (File | Project Structure Ctrl+Alt+Shift+S ). In Project Settings, select Project and in the Project compiler output field, specify the corresponding path.
Create JSDoc commentsPosition the caret before the declaration of the method/function or field to document, type the opening block comment /** , and press Enter . IntelliJ IDEA generates a JSDoc comment with a list of parameters ( @param ) and return values ( @returns ), where applicable.
In Preferences > Code Style > Java > Imports
, uncheck "Use fully qualified class names in javadoc".
In Preferences > Code Style > Java > Imports
, uncheck "Use fully qualified class names"
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