1

In Eclipse, one can use Team -> Show Annotation to see the revision history at the side of editor window; My question is how to let such annotation to ignore whitespace changes?

[EDIT] This issue occurs to files containing any programming language, even text file containing English.

Sathyajith Bhat
  • 61,504
  • 38
  • 179
  • 264
Computist
  • 2,927
  • 6
  • 28
  • 32
  • Which language are you programming in? – iglvzx Jan 20 '12 at 00:38
  • This issue occurred for files containing codes of any language. For example C++, if it makes the question better defined. – Computist Jan 20 '12 at 20:24
  • 1
    Does [this post](http://superuser.com/questions/354853/how-do-you-get-eclipses-built-in-diff-tool-to-ignore-differences-in-whitespace) help? – harrymc Jan 24 '12 at 10:32

2 Answers2

2

A vanilla Eclipse editor, as far as I know, will always show a change annotation, even if it's whitespace (you can only change the colours in which changes are displayed under General > Editors > Text Editors > Quick Diff). If you're talking about the compare editor, then you can simply right-click and check the "Ignore White Space" option.

To override this, you'd have to write your own plugin (in which case you might want to start by looking at the interface IQuickDiffReferenceProvider).

Amos M. Carpenter
  • 1,555
  • 2
  • 14
  • 23
0

After this bug is fixed it works: https://bugs.eclipse.org/bugs/show_bug.cgi?id=379680

jan
  • 225
  • 1
  • 3
  • 7