views:

68

answers:

4

Hello, Do you guys by any chance know of a tool for visual studio that can scan the entire application and find code duplication?

I have to clean up a medium sized asp.net c# application and I am using "Find and Replace" but it is really tedious work. I was wondering if there was a utility or VS plug-in that could automate this process.

Thanks in advance!

A: 

Perhaps PMD can help.

From the homepage:

Duplicate code can be hard to find, especially in a large project. But PMD's Copy/Paste Detector (CPD) can find it for you!

They have a list of similar projects.

Oded
A: 

you can give Clone detective a try

BioBuckyBall
Thanks Lucas! This looks interesting.
Scott W.
A: 

Simian is a good tool to use. You can define code block size, and create an external command to run it inside of the VS IDE.

http://www.redhillconsulting.com.au/products/simian/

David Yancey
A: 

It's not for VS, but Simian works pretty well.

http://www.redhillconsulting.com.au/products/simian/

James O'Sullivan