File | Settings | Editor | General | Auto Import

Xml

ItemDescription
Show import pop-upAutomatically display an import pop-up dialog box when typing the name of an unbound namespace.

Python

ItemDescription
Show import pop-upAutomatically display an import pop-up dialog box when typing the name of a class that lacks an import statement.
Preferred import styleSelect the style of import statement to be generated. The possible options are:
  • from <module> import <name> 
  • import <module>.<name>