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