Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In IDEA, how do you enable autoimport for javadoc links?

When writing Javadoc for a class and when I wish to add a link to another class, I type:

{@link SomeCl<TAB>}

and IDEA completes with the full import, ie it will yield {@link com.foo.SomeClass}; only afterwards can I choose to "replace with import".

Is there a way to tell IDEA to use imports in this situation instead?

(this is all the more frustrating that it does so automatically for code... Just not Javadoc)

like image 816
fge Avatar asked Mar 30 '14 12:03

fge


1 Answers

Problem solved. I should explore the configuration options further!

File -> Settings -> Code Style -> Java, select tab "imports", there is an option to Use fully qualified classnames in Javadoc which was checked. Simply uncheck it...

like image 79
fge Avatar answered Oct 20 '22 07:10

fge