Skip to content

Offer "Extract variable" assist for statements #15796

Closed
@Young-Flash

Description

@Young-Flash

There is a useful feature in Jetbrain IDEA, which is automatically bind a variable for an expression by a keyboard shotcut (ctrl + alt + v), showing below:

auto_binding

I think it would be wonderful if rust analyzer have a an feature (maybe impl via a assist💡), I'd like to make a PR if it's ok with rust analyzer team.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions