Line-Break Characters in the Editor

The Visual Studio editor interprets the following characters as line breaks:

  • CRLF: Carriage return + line feed, Unicode characters 000D + 000A

  • LF: Line feed, Unicode character 000A

  • NEL: Next line, Unicode character 0085

  • LS: Line separator, Unicode character 2028

  • PS: Paragraph separator, Unicode character 2029

The editor does not change line-break characters in text that is copied from other applications. For example, when you copy text from Notepad and paste it in the editor, the text in the editor has the same line-break characters as it had in Notepad.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft