Highlighting modified lines in Eclipse(在 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?
推荐答案
- 打开首选项窗口
- 搜索差异"
- 选择快速比较
- 将使用此参考源"更改为 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 中突出显示修改的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Eclipse 中突出显示修改的行
基础教程推荐
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- Struts2 URL 无法访问 2022-01-01
