scalameta / metals-feature-requests

Issue tracker for Metals feature requests
37 stars 4 forks source link

Extract nested definition to the separate file #360

Open kpodsiad opened 12 months ago

kpodsiad commented 12 months ago

Is your feature request related to a problem? Please describe.

It is possible to extract toplevel definition to the separate file e.g. case class, but it's not possible for the nested definition.

Describe the solution you'd like

What I'd like to do is to extract nested definition like the following

object X {
  trait Foo
}

Describe alternatives you've considered

do it manually or use Intellij ;)

Additional context

No response

Search terms

code action, extract