Version: 2023.1
LanguageEnglish
  • C#

LineEndingsMode

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Defines the type of line endings used when creating new C# files from within the editor.

Properties

OSNativeFile endings are the default for the active platform. On Windows, this is a carriage return character followed by linefeed character (\r\n). On macOS or Linux, this is a single linefeed characater (\n).
UnixLines are terminated with a newline character. Also referred to as linefeed, or LF.
WindowsLines are terminated with carriage return and newline characters. Also referred to as CR/LF or `\r\n`.