New feature "Code Clone Analysis" in introduce in Visual Studio 2012
You can find clones of specific code by selecting the segment you are interested then right click on the selection to choose Find Matching Clones in Solution from the context menu
In Code Clone Search Result you find reference file with match code block with Original and medium match
Please see reference link for more detail
Published under: Microsoft .NET Tips · · · ·
Interesting - we should have this in the SQL Server world soon.