Editorconfig Guide.e

End of line

EditorConfig key: end-of-line

End of line

end-of-line

This option sets the line ending characters used in the file: LF (Unix/macOS), CR (classic Mac) or CRLF (Windows).

Default value:

lf

Possible values:

  • lf
  • cr
  • crlf

Examples

lf
if(true) {\n
··return;\n
}
cr
if(true) {\r
··return;\r
}
crlf
if(true) {\r\n
··return;\r\n
}