哪种 Windows 编辑器具有正确的 EOL 空白处理?
我正在寻找一个用于编程的 Windows 文本编辑器,可以正确处理 EOL 空白,这对于我的正确方法来说是:在保存时删除所有 EOL 空白,除了我尚未编辑的行。这是为了最大限度地减少我的世界中 EOL 空白邪恶的数量,但不会通过仅空白修复来污染 SCM 差异/指责(我必须处理旧的/其他人的代码)。
我玩过 TextPad、Notepad++、Kodomo Edit 和 Programmer's Notepad 2,发现它们都缺乏。
另外:我不熟悉 vi,并且不确定 Windows 上的 Emacs。
@Matti Virkkunen:我可能会搞乱 diff,但我想解决问题,而不是症状。修复 diff 意味着我的、其他人和服务器端 diff 工具都需要修复,并且不能修复 SCM 中的空间/噪音/哈希更改问题。
例如,讨厌使用该系统:“更新”告诉我文件已更改。差异显示没有变化。
I'm looking for a Windows text editor for programming that handles EOL whitespace CORRECTLY, which for my idea of correct means: Strip all EOL whitespace on save, EXCEPT on lines that I haven't edited. This is to minimise the amount of EOL whitespace evil in my world, but not pollute SCM diff/blame with whitespace-only fixes (I have to deal with old / other people's code).
I have played with TextPad, Notepad++, Kodomo Edit and Programmer's Notepad 2, and found all of them lacking.
Also: I don't get along with vi, and I am unsure about Emacs on Windows.
@Matti Virkkunen: I could mess with diff, but I want to fix the problem, not the symptoms. Fixing diff means all my, others, and server side diff tools need to be fixed, and doesn't fix space/noise/hash change issues in SCM.
Example pet hate using that system: "update" tells me a file has changed. Diff shows no changes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AFAIR,Komodo Edit 使 EOL 保持不变,除非您明确更改在设置中。
AFAIR, Komodo Edit leaves EOL unchanged, unless you explicitly change that in the settings.