Are line endings still an issue when you share code via github or a similar version control system? I remember first experiencing this back when I began using Linux in 2008-ish and had to move code around via USB, but haven't used windows in a while.
In any case, there is a utility on Linux called dos2unix which converts line endings between the two if you have to handle line endings manually.