Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 419
Trevor Boyd Smith Avatar asked Feb 01 '14 18:02

Trevor Boyd Smith


People also ask

How do I change my default settings to Spyder?

Use the "Default Programs" interface and select the executable for your Spyder,try the "Set Associations" menu and use browse to select your executable. just need to be patient, to wait for a few seconds.

How do you set the path on a Spyder?

Press CTRL+SHIFT+ALT+P to open the Preferences window. Within this window, select the Console item on the left, then the Advanced Settings tab. The path to the Python executable will be right there.

How do you end a Spyder?

I run Spyder from an Anaconda PowerShell Prompt, so when Spyder stalls, I can go to the shell and use Ctrl+c to kill any process.


1 Answers

(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.

like image 113
Carlos Cordoba Avatar answered Oct 05 '22 10:10

Carlos Cordoba