All docs
V21.1
21.1
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Move All Types to Files Settings

You can configure the Move All Types to Files refactoring on the Editor | All Languages | Code Actions | Move All Types to Files options page.

options

The Move All Types to Files page contains the following settings:

Automatically Move the Following Types into Separate Files

Use this setting to select the types that the Move All Types to Files refactoring should move from one file into new separate files.

Note

All types are initially selected for this setting.

The following types are available:

  • Classes
  • Structures
  • Interfaces
  • Enums
  • Records
  • Delegates

CodeRush automatically activates items for the selected types in the “Types to move” window before you apply this refactoring. For example, if you set this setting to “Interfaces”, the “Types to move” window shows the enabled items for interfaces.

types-to-move-setting

Let Me Decide What Types to Move Each Time I Apply this Refactoring

This setting specifies whether the “Types to move” window appears when you apply this refactoring. Disable this setting to hide the “Types to move” window if you do not want to change the specified types when you apply this refactoring.

The screencast below shows the Move All Types to Files refactoring in action without the confirmation window:

hidden-window