Sublime Forum

BUG: default_line_ending does not work

#1

Sublime 2 always save new files using windows style (CRLF), even if i set “default_line_ending” to “unix”.
But it works fine after i change it via menu (View -> Line Ending -> Unix).

PS: i’m on Windows (build 2029)

0 Likes

#2

It works for me, test steps are: (on Windows)

  1. Add “default_line_ending”: “unix” to User/Base file.sublime-settings. Save.
  2. Press Ctrl+N, and check the View/Line Endings menu. Unix is checked.
0 Likes

#3

Oh… sorry… it re-sets to windows (or system) when i open zero-length file (e.g created using touch)

0 Likes