Skip to content

'Move to new file' refactoring for JavaScript and TypeScript #49866

@mjbvz

Description

@mjbvz

Add a new refactoring that extracts a class or function to a new file next to the current one. For example, for the simple project:

code.ts:

export class Foo { }
export class Bar { }

If the user highlightsBar, the extract to new file action would result in:

code.ts:

export class Foo { }

bar.ts:

export class Bar { }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions