如何将文件格式从 Windows 更改为 Unix
我正在使用 Eclipse 代码编辑器来处理我的远程文件。
看来 Eclipse 设置为 dos/Windows 文件格式。 我不知道如何找到Eclipse中设置的文件格式,但是 我希望将其设置为 Unix 文件格式。
如何在 Eclipse 中将文件格式设置为 Unix?
I am using the Eclipse code editor to work on my remote files.
It appears that Eclipse is set to dos/Windows file format.
I do not know how to find the file format set in Eclipse, but
I want it to be set to Unix file format.
How can I set the file format to Unix in Eclipse?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我没有安装 Eclipse 来检查,但从一些搜索来看,似乎有两件事要做。
要更改新文件的默认格式:
Window ->首选项->一般->工作区 ->新文本文件行分隔符
要转换打开的文件:
文件 ->将行分隔符转换为 -> Unix系统
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
查看以下图像以更改格式:
Take look of following image for changing format:
这甚至可以更具体地完成,仅针对单个项目:
This can even be done more specific, just for a single project: