Search code examples
pythonscipyspyder

Spyder IDE: How do you configure default end-of-line character?


I am using Spyder IDE to develop code and the IDE currently has default end-of-line character set to be CRLF. I would like to use '\n' instead because all my existing source code uses '\n' and so I don't want to have a bunch of new files that use a different end-of-line character.

Is there a way to specify the default end-of-line character in Spyder IDE? If yes, how?


Solution

  • (Spyder maintainer here) To configure the end of line characters you want to use, you need to go to the menu

    Tools > Preferences > Editor > Advanced settings
    

    then to the section End of line characters and select the ones that Spyder will use on save.