Skip to content

EOL Conversion plugin

Rewrite a document's line endings to one consistent convention. Useful when a file has mixed or platform-foreign line endings.

Where to find it

Edit ▸ EOL Conversion:

Command Rewrites every line ending to
Windows (CR LF) \r\n
macOS (CR) \r (classic Mac)
Linux (LF) \n

How it works

The conversion always applies to the whole document (any selection is ignored), in a single step you can undo at once. The status bar confirms the chosen target.

Existing bytes only

This rewrites the line endings already in the file. New Enter keystrokes after a conversion still use the editor's current line-ending mode, so run the conversion once you're done editing, just before saving, if you want a uniform file.

EditorConfig can enforce this on save

To normalise line endings automatically for a project, set end_of_line in an .editorconfig — the editor applies it on every save without a manual command.