To move a type to another file
- Select a class, interface, struct, or enum in Class View or Object Browser, or position the caret at its name in the editor.
- On the ReSharper menu or context menu, choose Refactor | Move,
or press F6. The Move
drop-down list appears, choose Move to Another File command. The
Move to Another File dialog box opens:
- In the New file name text box, type the file name. You can specify an existing file or a name for a new file. In the latter case, the new file will be created in the current folder.
- Click Next. The new file with the specified name is created in the same folder. Names and references are updated immediately.