Visual Studio 2010 causing: Inconsistent Line Endings...

There are inconsistent line endings in the ‘Assets/Plugins/AIManager/Pathfinding Engine/AI/AIAgent.cs’ script. Some are Mac OS X (UNIX) and some are Windows.
This might lead to incorrect line numbers in stacktraces and compiler errors. Many text editors can fix this using Convert Line Endings menu commands.

Ive had this come up since i Formatted my PC sometime ago and i still cant figure out how to remove this annoying Warning i get not only in Unity but also in VS.

Whenever i make changes to a cs file i get this warning in Unity and a popup window in VS that tells me the Line Endings are inconsistent or some such and do i wish to convert them?

I havent delved to deep into the issue since its more of an inconvenience than a hindrance and thought someone else here may have come across this as well or know where to disable this feature or make it automatic in VS.

Thanks guys.

Go to “\Unity\Editor\Data\Resources\ScriptTemplates\C# Script-NewBehaviourScript.cs.txt” and change it to your desired line endings.

In Visual Studio 2015:

Tool → Options → Environments → Documents → Check for consistent line ending on load.

It will then propose you to convert line ending on opening. Then just open the files and save them.

problem fixed here : Unity : inconsistent line endings - YouTube