Eclipse编辑器:如何将文件格式从Dos更改为Unix [英] Eclipse Editor: How to change file format from Dos to Unix

查看:704
本文介绍了Eclipse编辑器:如何将文件格式从Dos更改为Unix的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用eclipse编辑器来处理我的远程文件,显示eclipse编辑器设置为dos文件格式,我不知道如何在eclipse编辑器中找到fileformat集,但是我希望它可以在unix文件格式上设置



如何在eclipse中将文件格式选项设置为unix文件格式?



在VIM中设置文件格式的类似问题



谢谢。

解决方案

我没有安装Eclipse来检查,但是从一些搜索中,看起来有两件事情要做。 / p>

要更改新文件的默认格式:



窗口 - >偏好 - >一般 - >工作区 - >新文本文件行分隔符



要转换打开的文件:



文件 - >将行分隔符转换为 - > Unix


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.

解决方案

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

这篇关于Eclipse编辑器:如何将文件格式从Dos更改为Unix的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆