Automatically add newline on save in PyCharm?
Newer PyCharm I believe (2020+):
This can be enabled in the Editor > General
settings:
From the File menu open the Settings
and select Editor > General
. Under the Other
section in the right-hand pane, check the Ensure an empty line at the end of a file on Save
setting.