Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add field assist #10279

Closed
crumblingstatue opened this issue Sep 19, 2021 · 1 comment
Closed

Feature request: Add field assist #10279

crumblingstatue opened this issue Sep 19, 2021 · 1 comment

Comments

@crumblingstatue
Copy link

crumblingstatue commented Sep 19, 2021

struct Foo {
    field1: i32,
}

fn main() {
    let foo = Foo { field1: 42 };
    foo.field2/*add field assist requested here*/
}

The following would happen:

struct Foo {
    field1: i32,
    field2: /*editor focus and cursor jumps here*/,
}

Motivation: It can be tedious to jump to the type definition and type out the field name.
The user might not even remember the name of the type, so has to click on "go to type definition" on foo first.

@Veykril
Copy link
Member

Veykril commented Sep 19, 2021

Duplicate of #4563

@Veykril Veykril marked this as a duplicate of #4563 Sep 19, 2021
@Veykril Veykril closed this as completed Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants