I’m running sublime text on windows right now, and every time I create a new codefile and save it, it always comes out as CRLF, no matter how many times I set the menu option to “unix”.
I’d like to set sublime to never ever ever write another file out with windows line endings again, to the extent it’s possible.
How can I do it?
You can set the
default_line_endingin your settings file tounixas shown in the simplified example below. The settings file can be found in the “Preferences” > “Settings” menu option. This will apply to new files. Here’s a little snippet from my preferences file with it set to “unix”.There is some additional documentation of this on the sublime text site.