M
M
Maxim2019-11-07 23:30:28
JavaScript
Maxim, 2019-11-07 23:30:28

Is there a plugin for vs studio code that generates a querySelector?

Is there a plugin for this?
For example, there is HTML code.

<fieldset>
  <legend>Выбери цвет</legend>
    <div class="form-control">
      <label><input type="radio" name="rb-9" value="#fff">fff</label>
    </div>
    <div class="form-control">
      <label><input type="radio" name="rb-9" value="#c0c0c0">c0c0c0</label>
    </div>
    <div class="form-control">
      <label><input type="radio" name="rb-9" value="555">555</label>
    </div>
</fieldset>

I take a piece
value="#fff"
, and methods are generated for me: getElementsByClassName(), getElementsByTagName(), querySelector(), querySelectorAll() and other possible ones.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Shohruh Shaimardonov, 2019-11-07
@joeberetta

What you are asking is unlikely to be found, but there are js snippets here, look at qs, qsa and others

G
g_s_e, 2019-11-07
@g_s_e

in chrome there is this https://monosnap.com/file/anMgemTWCFy2hgxVINiVLU3w...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question