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.
我正在使用eclipse编辑器来处理我的远程文件,它显示eclipse编辑器被设置为dos文件格式,我不知道如何在eclipse编辑器中找到文件格式集,但我希望它可以设置为unix文件格式。
How can I set file format options to unix file format in eclipse ?
如何在eclipse中为unix文件格式设置文件格式选项?
Similar Question to set file format in VIM
在VIM中设置文件格式的类似问题
Thanks.
谢谢。
3 个解决方案
#1
100
I don't have Eclipse installed to check, but from some searching it looks like there are two things to do.
我没有安装Eclipse来检查,但是通过一些搜索,看起来有两件事要做。
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
文件->转换行分隔符到-> Unix。
#2
16
Take look of following image for changing format:
查看以下图片以改变格式:
Window -> Preferences -> General -> Workspace -> New text file line delimiter
#3
5
This can even be done more specific, just for a single project:
这甚至可以做得更具体,仅仅为一个项目:
Change Project > Properties > Resource : New Tex File Delimiter
更改项目>属性>资源:新的Tex文件分隔符。
#1
100
I don't have Eclipse installed to check, but from some searching it looks like there are two things to do.
我没有安装Eclipse来检查,但是通过一些搜索,看起来有两件事要做。
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
文件->转换行分隔符到-> Unix。
#2
16
Take look of following image for changing format:
查看以下图片以改变格式:
Window -> Preferences -> General -> Workspace -> New text file line delimiter
#3
5
This can even be done more specific, just for a single project:
这甚至可以做得更具体,仅仅为一个项目:
Change Project > Properties > Resource : New Tex File Delimiter
更改项目>属性>资源:新的Tex文件分隔符。