Search code examples
sublimetextsublimetext3emmetsublime-text-plugin

Reverse expand with Emmet


I'm using Sublime Text and Emmet. And I was wandering if there is a way to convert some html code into emmet shortcuts? So to use Emmet in the other sens.

I didn't find anything on the web.

So from this :

<ul>
    <li><a href="#"><i class="fa fa-user"></i></a></li>
    <li><a href="#"><i class="fa fa-user"></i></a></li>
    <li><a href="#"><i class="fa fa-user"></i></a></li>
</ul>

to this:

ul>li*3>a>i.fa.fa-user

Thank you :)


Solution

  • No, currently it’s not possible. You can join the discussion for this feature request: https://github.com/emmetio/emmet/issues/93