- Home /
inconsistent lines errors?!
I know that this question is asked often but i dont understand how i can fix this problem... i am using windows and the monodevelop programm from unity. i have already tried fixing it with notepad ++ and visual c but it didnt work... please help me so that i can continue with my project! thanks for your help, berkay
Answer by PatHightree · Oct 17, 2011 at 08:21 PM
In visual studio you can open the offending file and use the File/Advanced Save Options menu, then set Line Endings to Windows (CR LF). This fixes the problem for one file.
To fix the problem structurally, open the files in C:.....\Unity 3.4.1\Editor\Data\Resources\ScriptTemplates and fix their line endings. Then all your new scripts will have proper line endings.
Great, could you please mark the answer as accepted ?
@PatHightree could you be more specific pls? In the path you have provided I found the C# file template but I can't see the code that is responsible for line endings.
Edit the template in VS.
Change the document with "File/Advanced Save Options/Line Endings"
Save
Look again? It's there in Visual Studio 2015 seems unlikely it was dropped temporarily from whatever version these folks were using.