-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
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::*
.

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
tryoxiss, FalkWoldmann, brian-dawn and adamjhf
Metadata
Metadata
Assignees
Labels
No labels