JetBrains Rider 2017.2 Help

Move Type to Outer Scope refactoring

Ctrl+R, O

This refactoring helps you move a nested type one level up. All corresponding references are automatically updated, even if the nested type uses members of the parent type.

To move a type to outer scope

  1. Select a nested type in one of the following ways:
    • In the editor, set the caret at the name of a nested type.
    • Select a nested type in the Structure window.
  2. Do one of the following:
    • Press Ctrl+R, O and then choose Move to Outer Scope
    • Press Ctrl+Shift+R and then choose Move to Outer Scope
    • Choose Refactor | Move to Outer Scope in the main menu.
    The Move to Outer Scope dialog will open.
  3. Optionally, you can specify a different name for the type.
  4. To apply the refactoring, click Next.
  5. If no conflicts are found, JetBrains Rider performs the refactoring immediately. Otherwise, it prompts you to resolve conflicts.
Refactorings Move Type to Outer Scope outer type name
Last modified: 27 December 2017

See Also

Procedures: