A
A
anriko2020-01-03 19:53:31
HTML
anriko, 2020-01-03 19:53:31

What keyboard shortcut will wrap each word with a tag highlighting the whole list of words in visual studio code?

A list of cities is given how to wrap each word in a tag, <li>wrapping each word in turn, highlighting the entire list of words and using a keyboard shortcut
, for example, the list
Moscow
St. Petersburg
Abakan
Almetyevsk
Anapa
Arkhangelsk
Astrakhan
Balashikha
Barnaul
Belaya Kalitva
Belgorod
Biysk
Birobidzhan
Blagoveshchensk
Bratsk
Bryansk
Budennovsk
Veliky Novgorod
Vladivostok
Vladikavkaz
Vladimir
Volgograd
Vologda
Voronezh
Voskresensk
Gorno-Altaisk
Gubkin
Gus-Khrustalny
Dmitrov
Dolgoprudny
Dubna
Evpatoria
Yegoryevsk
Yekaterinburg
Zarinsk
Ivanovo
Izhevsk
Irkutsk
Kazan
Kaluga
Kemerovo
Kirov
Klin

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
RAX7, 2020-01-03
@RAX7

3tmauaarqjcoq75wbjdafmaape8.gif

S
Sergey Sokolov, 2020-01-03
@sergiks

I will only offer a variant with a multicursor:
As a result, a cursor will appear before each of the words. Then edit as usual:

  • write opening tag
  • Cmd + right_arrow will move the cursor to the end of the line (each line has its own position)
  • type in a closing tag.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question