19

I am getting the following message in Visual Studio 2008:

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

I don't understand what that means. Should I be clicking yes or no?

enter image description here

4

1 回答 1

20

正确答案几乎总是“是”和“Windows (CR LF)”。原因是源文件中的行结尾应该在文件中几乎总是一致的,Windows 上的源文件通常应该有 CR LF 结尾。有例外,但如果它们适用于您,您可能会知道它们。该警告是一个很好的警告,因为它会通知您文件以某种方式进入了这种不一致的状态,并且它为您提供了如何处理这种情况的选择。

于 2011-04-15T04:55:30.033 回答