如何将文件格式从 Windows 更改为 Unix

发布于 2024-08-23 21:19:05 字数 296 浏览 6 评论 0原文

我正在使用 Eclipse 代码编辑器来处理我的远程文件。
看来 Eclipse 设置为 dos/Windows 文件格式。 我不知道如何找到Eclipse中设置的文件格式,但是 我希望将其设置为 Unix 文件格式。

如何在 Eclipse 中将文件格式设置为 Unix?

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

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?

Similar Question to set file format in VIM

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

表情可笑 2024-08-30 21:19:06

我没有安装 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

单身情人 2024-08-30 21:19:06

查看以下图像以更改格式:

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

在此处输入图像描述

Take look of following image for changing format:

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

enter image description here

梅倚清风 2024-08-30 21:19:06

这甚至可以更具体地完成,仅针对单个项目:

更改项目>属性>资源:新的 Tex 文件分隔符

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

Change Project > Properties > Resource : New Tex File Delimiter

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文