coderushforroslyn-400586-coding-assistance-clipboard-tools-mega-super-copy.md
The Mega Super Copy feature allows you to add code with marked text elements to the clipboard. When you paste the code, CodeRush inserts linked text fields at the position of marked text elements. When you edit a text field, all other fields reflect the changes.
Note
You should mark only those text elements (code parts) that you want to change after you paste the code.
This feature is useful for repetitive code that needs a few changes. For example, you know which code parts you want to change, and where CodeRush should position the cursor after each paste.
Mark code parts that you want to change on paste.
Select the code block (including multi-selection).
Copy or cut the code block.
Paste the code. CodeRush replaces multi-selected code elements with linked text fields.
After you insert the code, you can change these text fields in different code places at once.
The following screencast demonstrates the Mega Super Copy feature:
You can configure how CodeRush generates links and fields on the Editor | All Languages | Linked Text & Fields options page.
Put the caret at the place where you want the caret to be after you complete text fields edit operation.
Press Ctrl + Alt + Enter to add a zero-length multi-selection marker at that location. When you paste, CodeRush places an empty Text Field at this location.
Press Ctrl + Alt + V to paste the most recent Mega-Super-Copied text, even if it is not on the clipboard.