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

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

问题描述

我最近从 NetBeans 转移到了 Eclipse.由于我必须处理从 SVN 检出的项目,因此我安装了 Eclipse.我的问题是:如何让 Subclipse 指示我在源代码(从 SVN 下载)中引入的更改,就像 NetBeans 一样?有什么办法吗?

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 导航到 General -> Editors -> Text Editors -> Quick Diff 并勾选Enable quick diff"、在总览标尺中显示差异"并将使用此参考源"设置为Pristine SVN Copy".

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".

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

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

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

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

随着您继续更改代码,它会在侧标尺上显示您的更改,直到您提交到 SVN.

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天全站免登陆