在Eclipse中突出显示已修改的行 [英] Highlighting modified lines in Eclipse

查看:332
本文介绍了在Eclipse中突出显示已修改的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在netbeans中,如果我打开一个受版本控制的文件,则被修改的行将在左侧突出显示. (绿色代表新行,蓝色代表修改后的行)

In netbeans, if I open a file which is under version control the lines which are modified are highlighted in the left. (green for new lines and blue for modified lines)

是否有可能在Eclipse中获得类似的效果?

Is it possible to get a similar effect in Eclipse?

推荐答案

  1. 打开偏好设置"窗口
  2. 搜索差异"
  3. 选择快速差异
  4. 将使用此参考源"更改为SCM提供程序(例如CVS,SVN或Git)

默认情况下,它与磁盘上的最新版本进行比较,如果您已保存文件,则该最新版本完全没有差异.您必须针对SCM存储库激活比较.我不确定如果您选择一种以上的SCM会发生什么,因为这只是一个选择.

By default, it compares to the latest version on disk, which, if you've saved the file, is no diff at all. You have to activate the comparison against a SCM repo. I'm not sure what happens if you more than one type of SCM since this is only a single selection.

这篇关于在Eclipse中突出显示已修改的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆