Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Exclude Class/Package from InelliJ auto-import feature without wasting too much if your time.
The question is published on by Tutorial Guruji team.
The question is published on by Tutorial Guruji team.
I work primarily with JavaFX, and do not plan to use Swing or AWT. However, when I type Button
for the first time in a class, and Intellij auto-imports the class, it often imports java.awt.Button
, instead of javafx.scene.control.Button
.
Is there any way to specify a list of packages/classes to not auto-import in Intellij to prevent this behaviour?
I have searched through IntelliJ docs, but cannot find anything relating to this particular issue.
Any help appreciated.
Answer
Look into “Editor” > “Auto Import” > “Exclude from import and completion”.
We are here to answer your question about Exclude Class/Package from InelliJ auto-import feature - If you find the proper solution, please don't forgot to share this with your team members.