JetBrains Rider 2018.1 Help

Copy Type refactoring

This refactoring allows you to copy a class, interface, struct, or enum defined in your solution from one namespace to another, or clone it within the same namespace. For partial types, all parts will be copied even if they are located in separate files.

To copy a type

  1. Select a type in one of the following ways:
    • In the editor, set the caret at the name of a type.
    • Select a type in the Structure window.
  2. Do one of the following:
    • Press Ctrl+Shift+R and then choose Copy Type
    • Choose Refactor | Copy Type in the main menu.
    The Copy Type dialog will open.
  3. Specify a name for the copied type and a namespace where it should be added.
  4. To apply the refactoring, click Next.
  5. If no conflicts are found, JetBrains Rider performs the refactoring immediately. Otherwise, it prompts you to resolve conflicts.
JetBrains Rider. Copy Type refactoring
Last modified: 20 August 2018

See Also