Preston Garno
Preston Garno

Reputation: 1215

How do I allow autocomplete for everything except AWT and Swing in Intellij?

AWT and Swing have almost the same names for everything in JavaFX, so I find myself going through the items by their package, finding the FX entries, and then looking at the documentation.

I know it's possible for modules, but this is a core JDK library bundled with everything else

Upvotes: 3

Views: 481

Answers (1)

uwolfer
uwolfer

Reputation: 4516

You can exclude specific packages from auto import in IntelliJ settings.

Settings > Editor > General > Auto Import > Java > Exclude from Import and Completion. There you can add packages javax.swing and javax.awt.

You can find more details about this setting in the IntelliJ manual.

Upvotes: 8

Related Questions