Skip to content

Emmet support for JSX #286

Open
Open
@l2dy

Description

@l2dy

Is it possible to get Emmet support in ReScript JSX? https://code.visualstudio.com/docs/editor/emmet

Activity

cristianoc

cristianoc commented on Jul 10, 2021

@cristianoc
Collaborator

I think @chenglou added some snippets -- not sure if using Emmet.

amiralies

amiralies commented on Jul 10, 2021

@amiralies
Contributor

This is not related to rescript-vscode.
You have to enable emmet for rescript file type.
take a look at here.
based on that you have to put something like this in your config file.

"emmet.includeLanguages": {
    "rescript": "javascriptreact"
}
l2dy

l2dy commented on Jul 10, 2021

@l2dy
Author

Emmet has no knowledge of these new languages, and so there might be Emmet suggestions showing up in non HTML/CSS contexts.

Is it possible to improve the experience? Emmet completions are popping out wherever I type if I add rescript to emmet.includeLanguages.

amiralies

amiralies commented on Jul 10, 2021

@amiralies
Contributor

I'm not sure if we can improve this from rescript side. Are you aware of other language plugins doing this?

l2dy

l2dy commented on Jul 10, 2021

@l2dy
Author

I'm not sure if we can improve this from rescript side. Are you aware of other language plugins doing this?

Yes, Svelte plugin supports Emmet through vscode-emmet-helper.

zth

zth commented on May 5, 2022

@zth
Collaborator

This might be a bit tricky in our setup, but let's think a bit about how we could leverage that module.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zth@cristianoc@amiralies@l2dy

        Issue actions

          Emmet support for JSX · Issue #286 · rescript-lang/rescript-vscode