IntelliJ IDEA
 
2025.1
Get IntelliJ IDEA

Auto import

Last modified: 05 March 2025

If you are using a class, a static method, or a static field that you have not imported yet, the IDE shows you a tooltip prompting you to add a missing import statement so that you do not have to add it manually. Press AltEnter to accept the suggestion.

If there's more than one possible source of import, pressing AltEnter will open the list of suggestions.

To change the background color for the import tooltip, press CtrlAlt0S and go to Editor | Color Scheme | General | Popups and Hints | Question hint.