Eclipse - View diff between working copy and repository version directly in the Editor.


I was wondering if there was a way we could see blocks of code that have changed since being checked out of SVN(or CVS for that matter).

This feature is available in IntelliJ IDEA, where in it marks specific portions of code as changed (compared to the same vresion file in repository)

Sometimes when the amount of modification is very high then it is a pain to have to go and diff the working copy and the SVN copy.

Is there a setting whihc directly enables this visual representation of the "MODIFIED BLOCKS OF CODE" in the editor itself?

Who is Participating?
objectsConnect With a Mentor Commented:
not that I'm aware of
Right click on the file and go to the Compare menu
Mayank SAssociate Director - Product EngineeringCommented:
In CVS with Eclipse, I use right-click -> Team -> Synchronize with repository to see the differences between the working copy and the version in the repository.
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

slickdealsAuthor Commented:
Thanks for the replies,

But I was wondering if there was anything within the editor itself which told me what has changed,..

I can always do a Compare with,
Or do a Team -> Annotate, or diff.

But then those are two additional steps for just finding out what lines of code changed,.

I do not necessarily want to find the exact changes,
only whether there was something that changes in the editor.
the svn plugin will mark files thats have changed in the package explorer view
Mayank SAssociate Director - Product EngineeringCommented:
Yes, CVS will mark it with > too (it is recursive up to the project level).
slickdealsAuthor Commented:
guys, I am sorry,. I was not specific enough in the previous post,.

What i want to know is whether eclipse editor will show which of the lines in a particular file changed(in the place where it shows line numbers, or where you can set break points and other stuff,. )

IntelliJ can do that,.
Just wondering if Eclipse did it too,.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.