ReSharper Web Help

To move a type to another file
  1. Select a class, interface, struct, or enum in Class View or Object Browser, or position the caret at its name in the editor.
  2. 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:
  3. 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.
  4. Click Next. The new file with the specified name is created in the same folder. Names and references are updated immediately.

 Tip

When you undo this action, be aware that content is deleted from the newly created file, but the file itself is preserved in project.

See Also

Procedures