Skip to content

Change between markup and stylesheets emmets based on context #1

@pedro757

Description

@pedro757

A cool feature will be to change between markup and stylesheets emmets based on cursor context, this is a nice feature, specially in filetypes like jsx tsx wherein both kinds of emmets are used.

For example:

import React from 'react';
import styled from 'styled-components'

const Button = styled.button`
  border: 2px solid;
  margin: 0 1em;
`
//  TYPING p10 DOES NOT WORK 

const Home = () => {
  return (
    <>
      <div>hola</div>
      {/*  TYPING (table>tr*3) WORKS  */}
    </>
  );
};

export default Home;

I don't know how to achieve this, maybe treesitter? Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions