Search code examples
javaintellij-ideajavafxidecode-completion

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


Solution

  • 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.