2
Editing HTML files in Sublime Text I can encapsulate a set of tags or text just by selecting the block and pressing Ctrl+Alt+Enter and then typing in which tag I want to use to encapsulate the block. I would like to do the same in Visual Studio Code but so far I have no idea.
If you use Emmet you can select the text, press
Ctrl + Shift + P
and typewrap
. One of the options is to wrap it with an Emmet expression.– fernandosavio
Thanks, it worked, only I was actually looking for a more practical keyboard shortcut.
– Maicom Oliveira
I did this same search a while ago and at the time there was no native shortcut. What you can do is add the above command to the shortcut file.
– fernandosavio
@fernandosavio jovem, to using the extension that I quoted there in the answer, has been quite useful, sometimes it interests you.
– hugocsl
Already positive. I use very little this Feature so I’ll leave it favorite for when I need it. Thanks Hugo!
– fernandosavio