Make Aptana never use Windows line endings

2019-06-15 00:30发布

问题:

Is there a way to configure Aptana so that it always uses Unix line feeds instead of Windows line feeds?

回答1:

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.



回答2:

Try "File" > "Convert Line Delimiters To" > "{choose platform}" ;)



回答3:

If you have existing files you want to switch to unix line endings, use dos2unix:

dos2unix my_file_edited_on_crappy_windows.txt


标签: aptana