Tool/function to compare sketches

Hi everyone-

Quick question. Sometimes when Im working on multiple revisions to a project, or revisiting old projects, I lose track of what exactly I changed in each revision.

I know it sounds like a stupid problem, and I can make comments in the sketch as to what I changed, etc... But sometimes I forget or get disorganized. It also makes it easier when collaborating with someone else on a project and you are each sending multiple revisions back and forth.

Any possibility of adding a feature into the IDE to allow you to load two "similar" sketches side by side to compare, and the IDE would highlight the differences for forgetful/disorganized people like myself? :slight_smile:

thanks
Ben

WinMerge or Meld on linux

Any possibility of adding a feature into the IDE to allow you to load two "similar" sketches side by side to compare, and the IDE would highlight the differences for forgetful/disorganized people like myself?

You could use git (on github) which does version control/compare.

/dev:
WinMerge or Meld on linux

Thanks! Ill check that out.

PaulS:
You could use git (on github) which does version control/compare.

Ahhh another interesting idea. Ive used github here and there to download other peoples' libraries for shields etc, but never really spent the time looking into how github actually "worked", ie its more advanced features beyond being "just a file webhosting service".

Ben

I developed the simple Python program at the bottom of this link to automatically save an archive copy of the code each time I upload it. It also adds a message into the program so that when you view the output in the Serial Monitor it tells you the name of the archive copy where the code that created the program can be found.

...R