Position the caret at any line, or select a block of source code:
On the main menu, choose
ReSharper | Edit | Duplicate Text, or, alternatively, press
A code duplicate will be inserted right after the original code:
TipThis feature is especially useful in conjunction with Extend/Shrink Selection - for example, you can quickly select a method, press Ctrl+D to duplicate it, and modify the copy to create a new overload.
This feature is supported in the following languages/technologies:
The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see the corresponding topics in the ReSharper by Language section.