简体   繁体   中英

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM