具有内联 SVN diff 支持的编辑器(如 Netbeans 中的那样)?

发布于 2024-12-10 15:31:46 字数 1222 浏览 0 评论 0原文

我正在尝试放弃 Netbeans 作为我的主要代码编辑器。我喜欢 Netbeans 的一件事是它显示文件更改的方式 - 请参阅屏幕截图< /a>。彩色条提供与 svn diff 相同的信息。将鼠标悬停在这些栏上可以选择查看差异或恢复此特定更改(相对于整个文件)。

其他哪些 OS X 编辑器/IDE 具有类似的功能?

额外问题:此功能有特定的名称吗?

更新对于后来发现这个问题的人:

在phatfingers的回答的帮助下,我自己做了一些进一步的研究,发现NetbeansEclipse+Subclipse 似乎是提供我正在寻找的东西的唯一选择。

Eclipse 似乎将此称为“Quick Diff”。人们倾向于将当前版本与Pristine SVN Copy进行比较。

作为记录,无论如何我都会转向其他编辑。 Subclipse 在 OS X 上的配置(仍然)很糟糕,而且 Eclipse 对于我的目的来说似乎相当臃肿。此外,Eclipse 的 Quick Diff 无法与 Netbeans 中的相媲美。 Netbeans 对装订线中的差异块进行了更清晰的着色,您只需单击一下即可恢复每个单独的更改。

虽然许多编辑器提供“非快速”svn diff,但我可能会在命令行上处理我的 svn diff,例如: svn diff | svn diff | svn diff | svn diff | svn diff grcat conf.diff。

或者也许我会为其他编辑器编写一个插件。 :)

更新2:我为Komodo Edit / Komodo IDE编写了一个 quickdiff 插件

I'm trying to abandon Netbeans as my primary code editor. One thing I like about Netbeans is how it displays file changes - see screenshot. The colored bars give the same information as svn diff. Hovering on these bars gives the option to see the diff or revert this particular change (vs. the whole file).

What other OS X editors/IDEs have a similar feature?

Bonus question: does this feature have a particular name?

UPDATE for someone finding this question later:

With the help of phatfingers's answer, I did some further research myself to find out that Netbeans and Eclipse+Subclipse seem to be the only options offering what I was looking for.

Eclipse seems to call this Quick Diff. There's a preference to diff the current version against Pristine SVN Copy.

For the record, I'm moving to some other editor anyway. Subclipse is (still) horrible to configure on OS X, and Eclipse seems quite bloated for my purposes. Also, Eclipse's Quick Diff is no match for what is in Netbeans. Netbeans colors the diff blocks in the gutter quite more clearly, and you can revert each individual change with a click.

Although many editors provide "non-quick" svn diffs, I'll probably handle my svn diffing on the command line, with eg. svn diff | grcat conf.diff.

Or maybe I'll write a plugin for some other editor. :)

UPDATE 2: I wrote a quickdiff plugin to Komodo Edit / Komodo IDE.

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

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

发布评论

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

评论(2

深巷少女 2024-12-17 15:31:46

带有 Subclipse 插件的 Eclipse IDE 在这方面做得很好,可以显示哪些文件发生了更改,允许您比较以前的版本以查看随时间的变化,检测哪些更改涉及冲突,并提供可视化工具,允许您手动选择单个文件变化。

我认为应用程序的类别称为“合并客户端”或更具体地说是“图形 Subversion 客户端”(正如您提到的 SVN)。

The Eclipse IDE with the Subclipse plugin does a nice job of that, showing you which files changed, allowing you to compare prior versions to see changes over time, detecting which changes involve conflicts, and providing visual tools that allow you to hand-pick individual changes.

I think the class of application is called a "Merge Client" or more specifically a "Graphical Subversion Client" (as you mentioned SVN).

2024-12-17 15:31:46

更新: Sublime Text 有 Vcs GutterGit Gutter,其中 Vcs Gutter 是一个分支。

Update: Sublime Text has Vcs Gutter and Git Gutter, of which Vcs Gutter is a fork.

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