Compare Clone Code in Visual Studio

By | November 5, 2013

Code Clone helps you to identify the duplicate code with in the files, projects as well within solution. This helps us to identify the  logics that can be refactored and can be rewritten in a common method.  You can check out this tip to learn how this code clone works.   Once you have the matched code, you can easily compare the clones code block and see the difference with in Visual Studio Editor itself.

This operation can be directly performed from the code clone result window, just select the files you wants to compare, and select “Compare” option from the context menu.

Compare Cloned Code

The Visual Studio Code editor will display the compared code with both added and removed code legends.

Compare Cloned Code in VS Editor

One thought on “Compare Clone Code in Visual Studio

  1. Pingback: Virtual Reality In .NET - The Daily Six Pack: November 8, 2013

Comments are closed.