Question - How To Detect Clone Code In Visual Studio?
Answer -
Code clones are separate fragments of code that are very similar. They are a common phenomenon in an application that has been under development for some time. Clones make it hard to change your application because you have to find and update more than one fragment.
Visual Studio Enterprise can help you find code clones so that you can refactor them.
You can either find the clones of a specific fragment, or find all clones in your solution. In addition to discovering direct copies, the clone analysis tool can find fragments which differ in the names of variables and parameters, and in which some statements have been rearranged.
The code clone analyzer searches for duplicate code in Visual C# and Visual Basic projects throughout your Visual Studio solution.