line-ending-converter

A package that shows the current line ending (EOL) format of the active file and converts its EOL symbols to Windows/Unix/Old Mac format.

williampuk

42,829

117

1.3.2

MIT

GitHub

This package consumes the following services:

Line Ending Converter package Build Status

Features

How to use

Status View Display:

It is enabled by default. You can disable it in the package setting.

Notes: The EOL format being shown is the EOL format of the first row of the file. It cannot detect if the file is having inconsistent EOL formats.

Perform conversion:

Status View,

Click the status view to open the list for conversion

Or, in Menu,

Packages -> Convert Line Endings To -> Unix Format / Windows Format / Old Mac Format

Or, in Context Menu (inside an active editor),

Convert Line Endings To -> Unix Format / Windows Format / Old Mac Format

Or, in Command Palette (cmd-shift-p or ctrl-shift-p), type

Convert To Unix Format, or Convert To Windows Format, or Convert to Old Mac Format

(Note: This will convert the line endings of the text in the active editor.)

Notes: The conversion works only when the file has at least one EOL symbol. If the file does not have any EOL symbols, the conversion would not persist, as the current implementation of Atom uses a default EOL (which appears to be the UNIX format) if there is no EOL symbol found in the file.

You can try to use the experimental feature "Normalize On Save" if you really need to have a consistent line ending across all files.