Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This just occurred to me today. I've primarily been diffing files whole text using tools like BeyondCompare, etc.

Was wondering if there's a tool or functionality to do selective diffs of 2 files, where I only diff against one or set of specific (class) methods or functions or variables/properties within the given 2 files. Rather than a whole diff and then scroll through areas of interest.

Useful when you what to diff and merge 2 class libraries, etc. and only are concerned about methods/functions and members/properties (of interest) that have changed w/o having to diff the whole thing (and for diff whole thing, if diff tool not great, having to scroll and align changes as needed to view diffs when they're not matched up correctly).

share|improve this question

I think you are looking for a semantic diff/merge tool. There is a tool that allows you to get differences and merge up to method level (everything inside a method is treated like plain text). It's called semantic merge and you can find it here:

Disclaimer: I work on the Semantic Merge team in Codice Software.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.