Eclipse Editor: How to change file format from Dos to Unix

旧巷老猫 提交于 2019-11-27 09:56:03

问题


I am using eclipse editor to work on my remote files it appears that eclipse editor is set to dos file format, I do not know how to find fileformat set in eclipse editor, but I want it to be set on unix file format.

How can I set file format options to unix file format in eclipse ?

Similar Question to set file format in VIM

Thanks.


回答1:


I don't have Eclipse installed to check, but from some searching it looks like there are two things to do.

To change the default format for new files:

Window -> Preferences -> General -> Workspace -> New text file line delimiter

To convert the file that's open:

File -> Convert Line Delimiters To -> Unix




回答2:


Take look of following image for changing format:

Window -> Preferences -> General -> Workspace -> New text file line delimiter




回答3:


This can even be done more specific, just for a single project:

Change Project > Properties > Resource : New Tex File Delimiter



来源:https://stackoverflow.com/questions/2374728/eclipse-editor-how-to-change-file-format-from-dos-to-unix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!