Skip to content

Auto complete for Maud #477

Description

@gusinacio

It's nice if rust-analyzer could auto complete the elements and attributes. This can be done by setting the "cursor" where the macro is being written in a dumb function that contains some sort of wildcard import like use elements::completion::* and use attributes::completion::*.

Image

A few resources:

https://emi0x7d1.dev/blog/improving-autocompletion-in-your-rust-macros
https://github.com/DioxusLabs/dioxus/blob/cb651a8ca23fbd9a951f7db33b87d16658bb1a25/packages/rsx/src/attribute.rs#L357

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions