Expand Authors Top

If you have a few years of experience in the Java ecosystem and you’d like to share that with the community, have a look at our Contribution Guidelines.

Expanded Audience – Frontegg – Security (partner)
announcement - icon User management is very complex, when implemented properly. No surprise here.

Not having to roll all of that out manually, but instead integrating a mature, fully-fledged solution - yeah, that makes a lot of sense.
That's basically what Frontegg is - User Management for your application. It's focused on making your app scalable, secure and enjoyable for your users.
From signup to authentication, it supports simple scenarios all the way to complex and custom application logic.

Have a look:

>> Elegant User Management, Tailor-made for B2B SaaS

November Discount Launch 2022 – Top
We’re finally running a Black Friday launch. All Courses are 30% off until tomorrow:

>> GET ACCESS NOW

November Discount Launch 2022 – TEMP TOP (NPI)
We’re finally running a Black Friday launch. All Courses are 30% off until tomorrow:

>> GET ACCESS NOW

1. Overview

This brief tutorial will describe each option of IntelliJ IDEA's ‘auto-import' feature.

2. Auto-import

There are several options in IntelliJ IDEA that we may configure in Settings > Editor > Auto Import:import1

Let's review each of these options.

2.1. Show Import Popup

When enabled, IDEA will underline a class reference in our code and suggest an import to add:

import2

If there are several options to choose from, Idea will let us choose an import from a list of alternatives:import3

2.2. Optimize Imports on the Fly

This one will make IDEA remove unused imports automatically and rearrange others according to the ‘Code Style' preferences.

2.3. Add Unambiguous Imports on the Fly

Also, there is a way to automatically add an import as we add references to classes that need to be imported.

2.4. Show Import Suggestions for Static Methods and Fields

Our final option will enable the import popup feature for statics.

However, note that turning only this option on (without ‘Show import popup') will not enable import suggestions for classes:import4

3. Conclusion

Some developers prefer to have total control over the imports in their classes, others rely on the IDE to handle this technical task.

Either of them may benefit from various configuration options that IntelliJ IDEA IDE has, including those for importing behavior.

November Discount Launch 2022 – Bottom
We’re finally running a Black Friday launch. All Courses are 30% off until tomorrow:

>> GET ACCESS NOW

Generic footer banner
Comments are closed on this article!