I really like the new built-in VS11 function for searching for "Cloning the code", but there seems to be no way to configure it.
As an example, only exact clones of 5 lines or more can be given.
Now it gives exact, strong, medium and weak matches, and it seems that they are for 10 lines or more. If I could customize this, it would help work through the clones, and it will find me those little methods that, I am sure, have been cut and pasted over the years.
UPDATE
The following are notes from the documentation for the preview version on how to configure the ability to exclude generated files.
To exclude files generated by T4 templates from code cloning analysis
Place the templates in a subdirectory of the Visual Studio project. Name it, for example, GeneratedFiles.
Add a new text file to the project and change its name and extension to t4Exclusions.codeclonesettings
Change the contents of the file as follows:
<CodeCloneSettings> <Exclusions> <File> GeneratedFiles * .cs </File> </Exclusions> </CodeCloneSettings>
UPDATE - 08/27/2012 I found this in the Code Clone documentation, it was not in earlier versions. This is one way to search for clones less than 10 lines long.
To find clones of a specific piece of code
1. Select the code fragment inside the method or the definition of get / set.
Note. You can find clones of statements, but not declarations, such as fields, methods, or property signatures.
2. In the context menu for the fragment, select "Find suitable clones in the solution."
Use this method if you want to find out if your solution has a similar method or fragment.