PaulSpoerry.com

You found me… insights on technology, philosophy, Windows, hacking and more.
  • Home
  • Archive
  • Contact
  • Categories
  • Search
  • About

Clone Detective for Visual Studio

PaulSpoerry | August 23, 2008

Clone Detective is a Visual Studio integration that allows you to analyze C# projects for source code that is duplicated somewhere else. Having duplicates can easily lead to inconsistencies and often is an indicator for poorly factored code.

You’ll get 3 new windows  (available from the View menu).

  • The Clone Explorer is where you initiate clone detection, and see results.
  • The Clone Intersections looks at a file and shows you all the other files that share clones with it.  The different colours represent the different clones sections.
  • The Clone Results shows you an individual cloned piece of code and where it resides throughout the application (i.e. all the different files where  that same code occurs).

When you look at a file with clones you’ll see a purple line next to the cloned lines (shown in the image).  By default visual studio just shows a single source file in the main window, however by dragging the tab with the filename in it to the right you can get to a side-by-side view which makes it so much easier to compare the clones before deciding it you should refactor or not.

At this time it appears to be only for C#, sorry VB guys.

Clone Detective is available via CodePlex and is free. Download it here.

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to Reddit Reddit Post to StumbleUpon Stumble This Post

Related posts:

  1. Windows 7 USB Download Tool Lets You Install Windows from a Thumb Drive
  2. JavaScript Debugging in IE6

Categories
Code, Tech
Tags
aspx, c projects, detective, inconsistencies, languages, microsoft, Microsoft Visual Studio, Programming, Source code, studio integration, Tools, visual studio, Windows
Comments rss
Comments rss
Trackback
Trackback

« Default Logins and Passwords for Networked Devices ASP.NET Extensions – Free AJAX Extensions for ASP.NET »

Leave a Reply

Click here to cancel reply.

You must be logged in to post a comment.

Recent Posts

  • FCC releases Internet speed test tool
  • Microsoft shows games on Mobile, PC, and Xbox
  • Google Voice Explained
  • Windows Mobile 7 to be announced, 6.x to become free
  • Microsoft finally patches 17-year-old bug

Popular Posts

  • µTorrent 1.8.3 Final (uTorrent 1.8.3)
  • Google Chrome’s JavaScript Engine Is CRAZY FAST
  • Google Chrome’s JavaScript Engine Is CRAZY FAST
  • 20 Classic Hip Hop Album Covers Redone With Legos
  • Windows 7 Benchmarks – XP vs Vista vs 7

Recommended Hosting

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox