Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ignore tab spaces in eclipse cvs file compare?

Tags:

I am trying to compare two files from different branches but there is a lot of differences due to tab characters in one file. How can I tell eclipse cvs plugin that ignore the tab spaces when doing the comparison?

like image 345
Manoj Avatar asked Oct 05 '11 18:10

Manoj


People also ask

How to ignore whitespace in Eclipse?

Remove trailing whitespaces To force Eclipse to remove all trailing whitespace: Go to Window > Preferences -> Java -> Editor -> Save Actions. Then Additional Actions -> Configure -> Code > Organizing tab -> Formatter. Check Remove Trailing Whitespace.

How do I display tabs in eclipse?

Check the option " General > Editors > Text Editors > Insert spaces for tabs ": if unchecked, it will display tabs, not space.


2 Answers

There should be a setting to ignore whitespace, which includes tabs. Go to Preferences and then search for Compare. There should be a setting to ignore whitespace.

It will be in Preferences->General->Compare/Patch. Check the "Ignore White space" option.

like image 87
atrain Avatar answered Jan 08 '23 00:01

atrain


Right click on the file and just select Ignore White space .

like image 22
Micro Ivelt Avatar answered Jan 07 '23 23:01

Micro Ivelt