在Visual Studio 2010中标准化行尾 [英] Normalizing line endings in Visual Studio 2010
问题描述
我们有多个开发人员在开发一个应用程序,似乎只要一个特定的人在处理文件,然后其他任何人在文件上工作,他们都会得到:
We have multiple developers working on an application and it seems that whenever one particular person works on a file then anyone else works on it they will get:
以下文件中的行尾不一致.你想要 规范行尾?
The line endings in the following file are not consistent. Do you want to normalize the line endings?
Visual Studio中是否有一些选项可以让开发人员进行更改,这样我们就不会一直持续弹出这种非常令人讨厌的消息?
Is there some option in Visual Studio that we can have that developer change so we don't continually have this very irritating message pop up all the time?
推荐答案
如果您不希望Visual Studio在打开文件时对其进行检查,则可以在出现提示时取消选中该框(始终显示此对话框")或在环境"->文档"->在加载时检查一致的行尾"下的工具"->选项"中
If you don't want Visual Studio to check this when it opens the file, you can uncheck the box when prompted ("Always show this dialog") or in Tools->Options under Environment->Documents-> "Check for consistent line endings on load"
您项目中的某些人可能正在使用使用Unix样式或Mac样式的行尾的编辑器.
Someone on your project is probably using an editor that uses Unix-style or Mac-style line endings.
这篇关于在Visual Studio 2010中标准化行尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!