C
C
CompiledBrain2017-05-24 15:34:42
JavaScript
CompiledBrain, 2017-05-24 15:34:42

Is there a JavaScript equivalent of Emmet?

With Emmet, you can write
div>p*10+div
and receive

<div>
  <p></p>
  <p></p>
  <p></p>
  <div></div>
</div>

Is there something with which you can write
switch> case * 5
and get a switch in the middle of which 5 case
or
if> ifelse
examples you can think of a lot

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton, 2017-05-24
@SPAHI4

webstorm has live templates

E
Emil Chapchakchi, 2020-07-04
@emilchap

There is a very good plugin in sublime text 3 if you write js in it. It's called JavaScript & NodeJS Snippets .
Also, unfortunately, it will not be able to generate code as emmet, but it still reduces the time of writing code

N
ntonbala, 2021-01-10
@ntonbala

For JS and other languages, snippets (own abbreviation mechanisms) are usually used. By the way, Emmet is also a mechanism for CSS-like abbreviations for writing HTML. Snippets are easy enough to create. How - depends on the particular editor/IDE.
In Google, YouTube, you can easily find examples of how to create your own snippet in the desired editor / IDE.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question