使用Emmet在Visual Studio Code中包装HTML元素

问题描述:

我正在使用VSC开发HTML页面.将emmet与VSC结合使用是一种很棒的体验,但是通常我会遇到一种情况,我必须用div包装一组元素,但是必须在一行上使用emmet,然后将end标签剪切粘贴到末尾.我要映射的元素集.

I am using VSC for developing html pages. It's been a great experience using emmet with VSC, but often I find in a situation where I have to wrap a set of elements with a div, but have to use emmet on a single line and then cut paste the end tag at the end of the set of elements I want to map.

有什么方法可以使用emmet并将emmet的输出自动包装在一组选定的元素周围?

Is there any way where I can use emmet and automatically wrap the output of emmet around a set of selected elements?

尝试使用Emmet: Wrap with Abbreviation命令: