3

This question explains how to enable auto-import settings. I did so, but when I type

/** some javadoc where I want to {@link SomeClass} 

it doesn't do what I want. Upon typing SomeClass IntelliJ shows me the potential link targets, all fine. I select one, and press enter. To then look at:

/** some javadoc where I want to {@link x.y,z.SomeClass} 

What I would like instead:

import x.y,z.SomeClass; 
...
/** some javadoc where I want to {@link SomeClass} 

In other words: how do I make IntelliJ to auto-import classes for @linking instead of using the fully qualified class name?

GhostCat
  • 137,827
  • 25
  • 176
  • 248

1 Answers1

8

In Preferences > Code Style > Java > Imports, uncheck "Use fully qualified class names in javadoc".

canillas
  • 414
  • 3
  • 13