The Move to Another Namespace refactoring helps you move the chosen type from one namespace to another. All using directives in the files where the type is used are updated correspondingly.
- 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.
Do one of the following:
- On the main menu, choose ReSharper | Refactor | Move.
- Choose Refactor | Move on the context menu.
- Press F6Ctrl+R,O.
In the Move drop-down list, click Move to Another Namespace.
The Move to Another Namespace dialog box opens:
- Specify the target namespace by typing its name or using the Target namespace name drop-down list.
- Click Next. If no conflicts are found, ReSharper performs the refactoring immediately. Otherwise, resolve conflicts.