Compare code with Visual Expert

When your application is evolving, you may need to understand what has changed between 2 specific versions.

Visual Expert now lets you select 2 analysis of your code and compare them. Visual Expert will show what has changed between each analysis.

How to compare code

  • First, you need to specify the versions of your code you wish to compare.
    In the ribbon menu, go to "Comparison".
    Visual Expert code comparison tab

  • Select a previous code analysis to compare with the current one.
    Select two code analysis to compare

  • Select some objects in the treeview, and click on the "Compare…" button.
    compare button
    To learn more about comparison features watch this tutorial video:

Also compare references

Beside finding the changes made in the code of an object, you can also compare the references to this object: Visual Expert will show which references were added or removed to this object, between 2 code analyses.

To do this:

  • In the ribbon menu, go to "Comparison".
  • Select a previous code analysis to compare with the current one
  • Select an object in the treeview
  • In the navigation bar, click on "Compare references"
    compare references

What's next ?

The current features compare 2 versions of the same code, i.e. 2 code analyses.

We are working on comparing 2 independent sets of code. For instance when 2 branches of your application were created down the road, and now you need to merge them to a single one:

  • You will add both set of code in the same Visual Expert project.
  • You will analyze them.
  • Then, you will be able to compare objects from each set of code.

Stay tuned for this upcoming feature.

We're also interested to hear from you about comparison features.
Contact us for any feature request or suggestion.

Code Comparison, How to