What does ‘inconsistent line ending’ mean in Visual Studio 2010?
I also see this error in a dialog when I’m coding in VS2010. How can I stop this error from showing in the dialog?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Windows, Unix, and older Mac OSs use different line endings. (Newer MacOS uses the Unix convention).
Windows uses CR/LF, Unix uses only LF.
Visual Studio is telling you it found messed up line endings on your file, indicating it was probably edited on different operating systems, and has fixed them all for you to be consistent. If you’re getting that message more than once per file, then you have to stop whatever is causing the line endings to get borked in the first place, which is most likely not Visual Studio but some other editor.