Atomiq REQUIRES .NET 3.5 SP1 to be installed. It is available for download here.
Browse to the folder that you would like to analyze.
Select how many lines of code are required to be repeated for Atomiq to flag as a code repetition by using the slider.
Enter regular expressions to exclude files and directories from analysis (e.g. automatically-generated code files). When you’re all set, press the “Ok” button.
Select a file to inspect from the Files window.
Opening a file will populate the Results in the top of the window:
Additionally, it will populate the Code view and Similarity views.
Click on instances of repetition in Similarities to jump to the location of the repeated code. The Similarity View shows you the position of repeated code in both files. From the Similarity View you can also copy the code to the clipboard and open the code in your IDE of choice by clicking on “Copy Code” or “Open”, respectively. You can also add the selected code to an Ignore list so Atomiq will no longer try to flag the code as repeated. In the Code view, you will see lines along the side to the left of the line numbers. Red lines indicate instances of repeated code in the same file, while blue lines indicate that the code has been repeated in a different file. Hovering over these lines tells you the line numbers of the repeated portion of code (and for blue lines the filename as well).
To open the wheel, click the ‘Wheel’ button in the Project area of the menu. Use the Wheel to get a quick overview of all of the repeated code in the selected directory.
As in the Code view, red lines indicate repetitions within the same file while blue lines indicate repetitions across files. The arcs that make up the wheel represent individual files. Hovering over them reveals the file name and its similarity statistics.
You can save your Atomiq project (the directory that was analyzed, regular expressions, etc.) by clicking on “Save”. The next time you launch the application, you can click “Load” to load your project. If you change files in your project while leaving Atomiq open, click on reanalyze and the program will update its results accordingly.