Automatically add newline on save in PyCharm?
What I usually do is I create a macro to do three things:
- Reformat code
- Organise imports
- Save all files
This will, indeed, add a newline at the end of each file.Then I rebind the Save all
shortcut (Cmd+S
on Mac) to this macro.
You can read more about macros here. I also recommend using Navigate to Action to find actions you forget the hotkeys for.