Sublime Forum

How to set the default line endings for unix?

#1

I’m used windows.
I was editing files at Ubuntu on Lan.
I try add “line_ending”: “unix”, to Base File.sublime-settings, it doesn’t work. :blush:

0 Likes

#2

I’m keeping it in project file, but try Preferences -> File Settings User eg Windows 7 path:

*drive*:\Users\*user*\AppData\Roaming\Sublime Text 2\Packages\User\Base File.sublime-settings
Put (keep JSON format)

{"default_line_ending": "unix"}

And you are ready to go;

2 Likes

#3

[quote=“Mylith”]I’m keeping it in project file, but try Preferences -> File Settings User eg Windows 7 path:

*drive*:\Users\*user*\AppData\Roaming\Sublime Text 2\Packages\User\Base File.sublime-settings
Put (keep JSON format)

{"default_line_ending": "unix"}

And you are ready to go;[/quote]

thank you very much! it works.

0 Likes