现在一般的开发环境模式组合是,本地使用window平台,服务器使用linux,有时候难免会出现在程序在本地window上运行正常,到linux上出现报错,而问题的原因,可能就是这个换行格式的不兼容引起的,window下的换行是'/r/n',而linux/unix下是'/n',下边说说设置方法:
Window->Preferences->General->Workspace
New text file line delimiter: radio buttons for 'Default' or 'Other' with a dropdown including Unix (yay)