What does Visual Studio mean by normalize inconsistent line endings?

后端 未结 11 2037
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 19:51

Visual Studio occasionally tells me:

The line endings in the following files are not consistent. Do you want to normalize the line endings?

11条回答
  •  暖寄归人
    2020-11-30 20:05

    The file you are editing has been edited with some other editor that does not use the same line endings, resulting in a file with mixed line endings.

    The ASCII characters in use for line endings are:

    CR, Carriage Return
    LF, Line Feed

    Windows = CRLF
    Mac OS 9 or earlier = CR
    Unix = LF

提交回复
热议问题