[英]VS code shortcut to wrap multiple lines of text in same tag?
I have a text file containing 100 lines of words.我有一个包含 100 行单词的文本文件。 Need to wrap them all in li tags to display as bullet points on a website.
需要将它们全部包装在 li 标签中,以在网站上显示为项目符号。 How to do so fast in VS code using some shortcut?
如何使用一些快捷方式在 VS 代码中快速完成? If I paste the text in VS code, it takes up 100 lines with one word on each line.
如果我将文本粘贴到 VS 代码中,它会占用 100 行,每行一个单词。
^(.*)$
in Find^(.*)$
<li>$1</li>
in Replace<li>$1</li>
foo
bar
baz asdad
foo bar baz 123
Becomes变成
<li>foo</li>
<li>bar</li>
<li>baz asdad</li>
<li>foo bar baz 123</li>
Shift+Alt+Click
on line 100Shift+Alt+Click
第 100 行Home
and Shift+End
Home
和Shift+End
li
and Enter
li
并Enter
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.