E
E
EYPPNM2019-04-01 20:42:58
Hotkeys
EYPPNM, 2019-04-01 20:42:58

How to rename opening and closing tags at the same time in VSCode?

On one video, I saw how they click on any opening tag 2 times, and when entering a new name, the closing tag changes as well. This is not a multicursor, this is a double click on the tag, how is it done, maybe there is some kind of hotkey?
I took a screenshot of this moment: the
5ca24d92e182b698198810.gif
author somehow double-clicks with the mouse, only on one tag, and the second one is selected automatically, maybe while he is holding down some key on the keyboard?
PS I also have both highlighted, but for some reason only one opening is edited

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
EYPPNM, 2019-04-02
@EYPPNM

I came up with my own version: press Ctrl + D after double-clicking on one tag, and then you can type a new name, and it will change immediately in two

D
Dimox, 2019-04-11
@Dimox

If I'm not mistaken, Emmet is built in by default in this editor. And it has a special command for renaming - editor.emmet.action.updateTag .

S
Stalkerkid, 2021-06-21
@Stalkerkid

Auto rename tag plugin, changes both the first and second tag at once.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question