Skip to content

Show 'move to a new file' refactoring on symbol names #24327

Closed

Description

@mjbvz

Search Terms

  • move to file
  • refactoring

Suggestion

For a file:

class Abc {}
class Xyz {}

The move to a new file refactoring only shows up if you select the entire declaration, i.e. class Abc {} or class Xyz {}

I propose that we also show it if the requested range is on the symbol name, such as inside Abc or inside Xyz

Use Cases

This will improve discoverability of the feature and help with dealing with large classes or function that do not fit on the screen

Activity

  1. mhegazy commented on May 22, 2018

    @mhegazy
    Contributor

    Andy (Andrewkraft) (@Andy-MS) i think we should do here what we have done in #24187 and include the declaration if the declaration name is part of the selection.

  2. ghost added
    Fixed
    on May 22, 2018
  3. ghost closed this as completedin #24331on May 22, 2018
  4. locked and limited conversation to collaborators on Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFixed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions