One Import Per Line Preference

Tell PyCharm to put each import on a separate line when it cleans up your imports.

Writing Python code means importing stuff. Lots of code can mean lots of imports. Python is pretty picky about style, and so are you, which can mean lots of tedious manual gardening of your imports.

PyCharm's Optimize Imports acts as your import janitor and it has settings which let you specify some options on style import. PyCharm 2018.3 adds a preference: "One Import Per Line". With this setting in place, PyCharms Optimize Imports action will rewrite lines like this:

from project.models import Item, User, Account

...into lines like this:

from project.models import Account
from project.models import Item
from project.models import User

Don't forget, PyCharm can also run the Optimize Imports action, with options such as Only VCS changed files, across all the files in your project. Also, check out the other ways to customize import styles.


Related Resources

See VCS Changed Lines In Gutter
Quickly spot which parts of your file have changed since the last commit.
Split Screen Without Tabs
Get your code and tests side-by-side without resorting to tabs.
Run From Keyboard
Use the keyboard to select and run a run configuration.