I have a text file containing 100 lines of words.
Need to wrap them all in li tags to display as bullet points on a website.
How to do so fast in VS code using some shortcut?
If I paste the text in VS code, it takes up 100 lines with one word on each line.
>Solution :
- Hit Ctrl + H
- Enable Regular Expression
- Enter
^(.*)$in Find - Enter
<li>$1</li>in Replace - Profit
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>