C
C
Captain Cocoa2021-07-01 10:21:05
webstorm
Captain Cocoa, 2021-07-01 10:21:05

How to add your stuff to Emmet in WebShtorm?

Hello.
I work with React module styles, and when I write, for example, like this

.myClass - by clicking on Tab I get <div className="myClass"></div>
And I need to get such markup <div className={s.myClass}></div>
Where can I add the template I need, and how can I do it in the place where I write my class, is it in the template and substituted?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrei Alisenok, 2021-07-01
@alinax

Captain Cocoa
file > settings > editor > live templates

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question