如何禁用IntelliJ IDEA中行分隔符中的diff? [英] How can I disable diff in line separators in IntelliJ IDEA?
问题描述
我在Windows上使用Intellij IDEA 14,在Unix服务器上使用Git作为VCS。
Windows中的行分隔符是CLRF( \r\\\
)和LF(
\\\
)在Unix中。
在Git中,我使用config - 全局core.autocrlf输入
。这将在提交时将所有CRLF转换为LF。
I'm using Intellij IDEA 14 on Windows and Git as VCS on Unix server.
The line separator in Windows is CLRF (\r\n
) and LF (\n
) in Unix.
In Git, I'm using config --global core.autocrlf input
. This will translate all CRLF's to LF's upon commit.
当我在格式良好的文件上使用格式化代码选项时,IDEA将文件标记为已更改并显示diff只有线分隔符。
When I'm using "Reformat code" option on well-formatted file, IDEA marks files as changed and shows diff in line separators only.
如何在IDEA中禁用该功能?
How can I disable that in IDEA?
推荐答案
在窗口的右下角,将 [CRLF]
更改为 [LF]
In the bottom right of your window, change [CRLF]
to [LF]
这篇关于如何禁用IntelliJ IDEA中行分隔符中的diff?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!