Skip to content

Add support for nesting operators #4

Open
@BrunnerLivio

Description

## Description

This is a follow-up for #3. Emmet supports different kinds of Nesting operators. It would be a match made in heaven to have this supported in this vs code extension as well!

Read more

Specification

Child: >

fc.MyComponent>useState.firstName

would produce:

const MyComponent = () => {
  const [firstName, setFirstName] = useState();

  return (
    <></>
  );
}

Sibling: +

fc.MyComponent>useState.firstName+useState.lastName

would produce:

const MyComponent = () => {
  const [firstName, setFirstName] = useState();
  const [lastName, setLastName] = useState();

  return (
    <></>
  );
}

Climb-up: ^

fc.MyComponent>useState.firstName^fc.AnotherComponent

would produce:

const MyComponent = () => {
  const [firstName, setFirstName] = useState();

  return (
    <></>
  );
}

const AnotherComponent = () => {
  return (
    <></>
  );
}

Activity

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

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