You can simply follow these steps:
- In the Settings/Preferences dialog (Ctrl+Alt+S), click Editor | General | Auto Import.
- In the Python section, configure automatic imports:
- Select Show import popup to automatically display an import popup when tying the name of a class that lacks an import statement.
- Select one of the Preferred import style options to define the way an import statement to be generated.
Let me know how it goes!
Answer from Aly Mobarak on Stack Overflowpython - Can I use another shortcut for auto import in pycharm? - Stack Overflow
python - Pycharm auto relative imports - Stack Overflow
Why my auto import doesn't work like in pycharm?
How to stop Pycharm adding imports to my code automatically ?
Videos
Hey All,
I recently started using InteliJ and I noticed as you start typing a class name it shows suggestions and you can tap enter to complete/import. Where as in PyCharm I typically have to type the class name and hit Alt Enter to import.
I feel like I'm missing an obvious setting but I can't seem to find it. Can anyone point me in the right direction?
https://imgur.com/a/wkjW8TD
It appears currently there is no way to change the import style for auto-import feature to use relative imports. The only style changes you can make to import statements are how the absolute imports are structured:

(The Jetbrains/PyCharm settings search functionality is excellent by the way).
The same thing happens when refactoring, it's definitely an option I'd like to see added.
It will be possible starting with 2019.3 https://youtrack.jetbrains.com/issue/PY-6054
Note, that it will not do the relative import automatically if there are no other relative imports in that file yet. There is also an action to convert the existing absolute import to relative:

It fails every time, it is really stupid how it works.
Just using a new variable name and if that is reused in another module, it adds an import statement on the top, without asking.