【问题标题】:Change Line Feeds from CRLF to LF in Eclipse在 Eclipse 中将换行从 CRLF 更改为 LF
【发布时间】:2017-12-22 00:44:14
【问题描述】:

我最近注意到我的项目中文件的换行符是 CRLF,但我希望它们为 LF。(我从 GIT GUI 收到以下消息:

“UTF-8 Unicode 文本,带有 CRLF 行终止符”

我该如何解决这个问题?

【问题讨论】:

  • 您是否尝试过更改设置? (Window->Preferences->General->Workspace: Text File Encoding and the New Text file line delimiter)

标签: eclipse newline line-endings linefeed lf


【解决方案1】:

试试下面的流程

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

【讨论】:

  • 我没有Convert Line Delimiters to 菜单选项。如何获得此菜单选项?
【解决方案2】:

试试这个:

Window->Preferences->General->Workspace: New Text file line delimiter

【讨论】:

    猜你喜欢
    • 2014-07-27
    • 1970-01-01
    • 2010-12-04
    • 1970-01-01
    • 1970-01-01
    • 2018-08-23
    • 1970-01-01
    • 1970-01-01
    • 2020-12-16
    相关资源
    最近更新 更多