具有内联 SVN diff 支持的编辑器(如 Netbeans 中的那样)?
我正在尝试放弃 Netbeans 作为我的主要代码编辑器。我喜欢 Netbeans 的一件事是它显示文件更改的方式 - 请参阅屏幕截图< /a>。彩色条提供与 svn diff 相同的信息。将鼠标悬停在这些栏上可以选择查看差异或恢复此特定更改(相对于整个文件)。
其他哪些 OS X 编辑器/IDE 具有类似的功能?
额外问题:此功能有特定的名称吗?
更新对于后来发现这个问题的人:
在phatfingers的回答的帮助下,我自己做了一些进一步的研究,发现Netbeans和Eclipse+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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
带有 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).
更新: Sublime Text 有 Vcs Gutter 和 Git Gutter,其中 Vcs Gutter 是一个分支。
Update: Sublime Text has Vcs Gutter and Git Gutter, of which Vcs Gutter is a fork.