Skip to content

add useState import to useStateSnippet #277

Open
@totti-rdz

Description

@totti-rdz

I'm kinda confused as I'm pretty sure, that I've used this vs code extension on my old macbook that died in june.
But on my old machine the shortcut for the useState snippet was "useState" instead of "useStateSnippet", which lead to confusions, so "useStateSnippet" is the better shortcut.

Anyway the old snippet always updated the React import if useState hasn't been imported yet in the file. And I desperately would love to have that functionality again. Is there any setting I need to enable?

I already have that "importReactOnTop" setting enabled, but that doesn't seem to do the trick here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions