Make Aptana never use Windows line endings
Is there a way to configure Aptana 开发者_Go百科so that it always uses Unix line feeds instead of Windows line feeds?
You can change this setting by going into "Window" >"Preferences" > "General" > "Workspace" and change the "New text file line delimiter" from "Default" to "Other" and then select "Unix" in the drop-down menu.
Try "File" > "Convert Line Delimiters To" > "{choose platform}" ;)
If you have existing files you want to switch to unix line endings, use dos2unix
:
dos2unix my_file_edited_on_crappy_windows.txt
精彩评论