ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Move to Folder refactoring

Last modified: 23 September 2024

This refactoring helps you move one or several types or files to another project or folder anywhere in your solution. If necessary, the refactoring will create the new target folder for you. All imports that the moved type(s) require are fixed in the new location. All imports that are no longer necessary are removed from the original file(s).

Notes:

  • This refactoring is not available for nested types.

  • If you are moving types to another project, there may be missing project references for namespaces used in the moved types. In this case, you will have to add the missing references manually.

ReSharper. Move to Folder refactoring

This feature is supported in the following languages and technologies:

The instructions and examples given here address the use of the feature in C#. For more information about other languages, refer to corresponding topics in the Languages and frameworks section.