Line endings and Operating Systems

Almost every Asset I see on the store comes with Mac OS X (Unix) line endings. Since I’ve left Visual Studio on the default of using Windows line endings they get converted over to Windows until the next update. This isn’t an issue, but it made me curious. Do most on here actually use Macs to dev on or is using Mac / Unix line endings considered the better practice?

It’s more likely that people are using some version control system to store their stuff while they develop it, and most of those convert to Unix-style line endings for internal consistency. Most tools are also able to convert to your local system’s style when you open it (and you should be able to suppress the message if you want).

It’s not just Macs. MonoDevelop will convert to Unix line endings and Visual Studio will convert back. If I debug in MonoDevelop and let it convert the endings (or I make changes in MD) then open in Visual Studio I get the inconsistent line endings message again.

you’d think by this day and age we’d have some kind of standard for freakin line endings.

We do. We have 2 standards for it. None of the existing operating systems have any reason to switch, and so it continues as it is.

I recommend having something automatically convert your files to whatever one you think is better. Or just using tools that allow you the option, instead of forcing it on you.