Search found 2 matches

by FrankE
Wed 20 Jan 2021 13:07
Forum: Code Compare
Topic: Ignore line wrapping differences?
Replies: 3
Views: 26529

Re: Ignore line wrapping differences?

Thank you for the answer!
by FrankE
Mon 18 Jan 2021 18:50
Forum: Code Compare
Topic: Ignore line wrapping differences?
Replies: 3
Views: 26529

Ignore line wrapping differences?

One of the reasons I'm looking at Code Compare is because I've got code that was reformatted by one of the folks who worked on it and I'd like to be able to ignore those differences when comparing.

Here is the simplest example I could create:

File 1:

Code: Select all

#include <stdio.h>

int main (int argc, char ** argv) {
printf("Hello World\n");
}

File 2:

Code: Select all

#include <stdio.h>

int main (int argc, char ** argv)
{
printf("Hello World\n");
}
Image https://imgur.com/a/6X3R2Ml

The only difference is the opening brace that got put on the following line in the new copy.

This gets flagged as a difference, even with ignore white space, ignore line breaks, and structural code comparison enabled.

Is there any way to get Code Compare to not display that as a difference?

Thanks for any help you can offer.