http://www.jetbrains.com/help/pycharm/2016.2/configuring-line-separators.html
PyCharm makes it possible to set up line separators (line endings) for the newly created files, and change line separator style for the existing files.
On this page:
- Setting up line separators for newly created files
- Viewing line ending style for the current file
- Changing line separator for a file, currently opened in the editor
- Changing line separator for a selection in the Project view
- Tips and tricks
To set up line separators for new files
- In Settings, click Code Style.
- From the Line separator (for new files) drop-down list, select the desired line separator style:
- Apply changes and close the dialog.