Skip to content

Intellisense suggestions for string literal type. #7572

Closed
@Tharaxis

Description

@Tharaxis

Would be great if CTRL+Space (or whatever your hotkey is for show suggestions) would show all the literal string options available for string literals.

In my case I have an <Icon> React component which takes an icon key as one of its props, and I want to limit the options that can be chosen. The string literals work great. Unfortunately because of the number of icons it's somewhat difficult to know what your options are and the intellisense is next to useless in this case because you get basically the first 3 or 4 options in the description, but nothing more. Being able to invoke suggestions and get the list would be a huge help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions