ReSharper Web Help

To move a type to another file
  1. Place the caret at the name of a class or interface, etc. in the editor or select it in the Class View window or in the Object Browser window.
  2. On the ReSharper menu or context menu, choose Refactor | Move, or press F6.  The Move drop-down list appears, then click Move to Another File. The Move to Another File dialog box opens:

  3. Type a file name in the New file name text box. You can specify a name for an existing file or a new one. In the latter case, the new file is created in the current folder.
  4. Click Next. If no conflicts are found, ReSharper performs the refactoring immediately. Otherwise, resolve conflicts.

 Tip

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

See Also

Procedures