Is there a tool that can do a diff of two methods? I’m working on some legacy code that has several 100-200 line methods that contain a lot of duplication and I would like to abstract the duplication out. Being able to diff the two methods would be a huge help. In case it matters, I’m working with .NET and Visual Studio 2008.
Share
Don’t know if this is practical for you, but (unsurprisingly) emacs can do this for regions within two files both as a line-by-line or word-by-word comparison.
look up emacs ediff if interested (it also does file/buffer compares, file against ancestors, patches, 3 file compares and merges…. pretty comprehensive). I don’t think I’ve seen a diff/merge system in any other programming editor quite as good.