views:

297

answers:

3

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?

+4  A: 

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 is probably using an editor that is using Unix-style or Mac-style line endings.

Aaron Marten
A: 

Like Aaron said, another developer is probably using vi to edit files.

Jess
A: 

If you are using version control then make sure that the server and client configurations for line endings are consistent with the way people are working and the server should be able to handle it properly.

Eg for perforce: http://kb.perforce.com/?article=063

Peter Y