Visual studio 2011 introduces the code clone analysis feature that allows developers for identification of similar code sections. The new feature enables developers to identify duplicate code in the solution which makes it difficult for making changes in the code, as the same change must be made in multiple places in the code base. Code clone analysis, by identifying these similar sections of code, makes it easier to refactor them.
You can launch the code clone analysis from the Analyze menu item, which shows the two exact matches for a code clone.
Code clone window will display the from – to line number along with the files name. You can click on that line to navigate to the code block or just mouse hover to see the cloned code.