Sublime Forum

Automatic line endings per filetype?

#1

Simple question !
Is it possible to setup Sublime to create new files with line endings, depending of the file type of the file.

That is, could I setup that all: .html files should have unix/linux line endings, ** .txt should have Windows line endings etc.
Or can I only use the “default_line_ending” settings ?

/Regards.
Johan

0 Likes

UNIX line endings for *.sh files?
#2

Yes, Is possible

Preferences > Settings - More > Syntax Specific - User, on is open html file and set default_line_ending or tab_size, etc…

0 Likes

#3

Great news!
Thanks for the help.

Regards.
Johan

0 Likes