D
D
Dima2021-08-18 11:15:42
webstorm
Dima, 2021-08-18 11:15:42

How to copy all html classes to scss?

How from this

<div class="tooltip">
    <div class="tooltip__wrapper">
      <div class="tooltip__content">
        <span class="tooltip__text">
         текст
        </span>
        <button type="button" class="tooltip__close">
        </button>
      </div>
    </div>
  </div>


get it
.tooltip{
  &__wrapper{}

  &__content{}
  &__text{}
  &__close{} 
}

there is in phpstorm the creation of a vue component from a selected piece of html

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WillieShibelgut, 2021-08-18
@WillieShibelgut

For your IDE, there seems to be a MarkupToSCSS plugin ( https://plugins.jetbrains.com/plugin/8267-markup-t... ), I, for example, use eCSStractor in VSCode, which is analogous.

S
Sergey, 2021-08-18
@SergeiB

Is there such a layout tool?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question