Alan Mattanoon Game Development Stack Exchange • Recommends
On “Unity: "inconsistent line endings" dialog shows up ever time I open VS with unity”
End-of-file (EOF) | Line ending, end of line (EOL)
As Josh Petrie mention, you can solve the problem by changing the line endings of each script you open. First, you need to close the script in Visual Studio. Then go to Unity and double click in the Unity console line ending warning message. Visual Studio will open the script with the missing and a line ending dialogue window will show up. Go to the Line endings section and choose Windows or the OS platform that you are using. Now save the script and next time you open VS, the message will not pop up for this script.
Visual Studio 2019
If it is not working as a workaround you can force normalize using
Edit > Advanced > Set New line…