[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Can I make CVS sync. more smart?

/Rich Kulp/:
Carfield Yim wrote:

Can I config CVS don't consider space difference is difference?

i.e.: After I done some refactoring, eclipse will modify every related files formating. Then when somebody else view that file in CVS sync. view, eclipse will show a lot of difference which only contain difference in formating, which is no. of space/tab difference before or after the actually code. Can I tell eclipse don't display difference like that?

I'm not sure but try

Window->Preferences->General->Compare/Patch->Ignore white space

There's also an "Ignore White Space Where Applicable" button on the toolbar when a "Compare" editor is shown, but the OP may consider a way to not change the line endings, tabs vs. spaces, etc. whitespace. AFAIK all standard editors (Plain Text, Java) detect the source line ending type and use it instead whatever the platform default is.


--
Stanimir