哪种 Windows 编辑器具有正确的 EOL 空白处理?

发布于 2024-09-03 19:42:41 字数 432 浏览 2 评论 0原文

我正在寻找一个用于编程的 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 技术交流群。

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

发布评论

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

评论(1

萤火眠眠 2024-09-10 19:42:41

AFAIR,Komodo Edit 使 EOL 保持不变,除非您明确更改在设置中。

AFAIR, Komodo Edit leaves EOL unchanged, unless you explicitly change that in the settings.

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