Skip to content

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions