Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

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?

like image 222
Jason Avatar asked Aug 04 '10 15:08

Jason


1 Answers

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"

Someone on your project is probably using an editor that uses Unix-style or Mac-style line endings.

like image 57
Aaron Marten Avatar answered Sep 23 '22 00:09

Aaron Marten