简体   繁体   English

如何使用Perforce的Eclipse插件在Eclipse编辑器中查看对程序文件的差异?

[英]How do I view diffs made to a program file in the Eclipse editor using Perforce's plugin for Eclipse?

I want a visual indicator of changes made to my program file in the Eclipse editor. 我想要一个可视化的指示器,以指示在Eclipse编辑器中对程序文件所做的更改。 For example, a new line added to the file should appear as green (or any other color) in the editor. 例如,添加到文件的新行应在编辑器中显示为绿色(或其他任何颜色)。 How do I make this happen? 我如何做到这一点? I am using eclipse Juno and I have Perforce plugin installed. 我正在使用Eclipse Juno,并且安装了Perforce插件。

Have you tried adding the Perforce perspective, then viewing the diffs in Eclipse's "P4 Pending Changelists" tab via "Compare with Source Revision"? 您是否尝试过添加Perforce透视图,然后通过“与源修订版本比较”来查看Eclipse的“ P4待处理变更列表”选项卡中的差异? It's not color-coded, but is an obvious visual indication. 它没有颜色编码,但是很明显。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM