Subclipse - 标记代码如NetBeans中的更改 [英] Subclipse - marking code changes like in NetBeans

查看:78
本文介绍了Subclipse - 标记代码如NetBeans中的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我从NetBeans转到了Eclipse。由于我必须使用从SVN签出的项目,我安装了Eclipse。我的问题是:如何使Subclipse指出我在源代码(从SVN下载)中引入的更改,就像NetBeans一样?有没有办法?

解决方案

在窗口 - >首选项导航到常规 - >编辑器 - >文本编辑器 - >快速差异勾选启用快速差异,显示概述标尺的差异,并将使用此参考源设置为原始SVN复制。



您可能还要更改颜色以匹配NetBeans(蓝色为更改,绿色为添加,红色为删除)。





请注意,您可能需要重新启动Eclipse才能使其生效。



随着您更改代码,它将在侧面标尺上显示您的更改,直到您提交到SVN。


I moved recently from NetBeans to Eclipse. Since I have to work with the project checked out from SVN I installed Eclipse. My question is: how to make Subclipse indicated the changes that I introduce in the source code (downloaded from SVN) just like NetBeans? Is there any way?

解决方案

In Window -> Preferences navigate to General -> Editors -> Text Editors -> Quick Diff and tick "Enable quick diff", "Show differences in overview ruler" and set "Use this reference source" to "Pristine SVN Copy".

You might also want to change the colors to match NetBeans (blue for Changes, green for Additions, red for Deletions).

Note that you'll probably need to restart Eclipse for this to take effect.

As you go on changing the code it will show your changes on the side ruler until you commit to SVN.

这篇关于Subclipse - 标记代码如NetBeans中的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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