- On the main menu, choose .
- In the Specify Code Duplication Analysis Scope dialog, specify the analysis scope (whole project, current file, the files that are not under version control, or some custom scope). In addition, you can include test sources into the analysis too. Click OK.
- In the Code Duplication Analysis Settings dialog, check the options to define your preferences for the analysis. You can opt to request identical match for code fragments to be considered duplicates, or specify a certain limit below which the code constructs are not considered duplicates (to avoid reporting about each if construct in the source code).Click OK.
- In the Duplicates tool window, explore search results:

- View the list of duplicates in the left pane of the tool window.
- View differences between the found duplicates in the right pane. Use the arrow buttons to place the selected duplicate in one of the sections of the differences viewer and compare fragments of the code.
- Navigate to the duplicates in the editor, using Jump to Source or Show Source commands of the duplicates context menu.

