Sublime Forum

Config Default_line_ending bug

#1

Hello, our company development requires that code must be wrapped in UNIX format, but I in use found a bug exists in the sublime, I know personal configuration file can be configured UNIX newline, in the following code

“Default_line_ending”: “UNIX”

Configuration after, when creating a new document this configuration is in effect, the default is UNIX newline formats, but if I open the file already exists, open the option " view - line endings " to find the default settings still “windows”, the detail info you can see the attachment.

This bug, in the build2221 version of 2.0.2 and build 3083 are there


0 Likes

#2

Line endings are detected from the file you opened. If it had Windows line endings before, then ST will not change that. The default is indeed only for creating new files.

0 Likes

#3

Thank you for your reply, so there is no configuration to make my file is always open to line endings UNIX for editing, rather than a manual to do a conversion ? :blush:

0 Likes