Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 569
Preston Garno Avatar asked Dec 11 '25 07:12

Preston Garno


1 Answers

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.

like image 188
uwolfer Avatar answered Dec 13 '25 19:12

uwolfer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!