Whenever I have a series of lines that are supposed to be a bulleted list (UL) in Sublime Text 3, I need to repeat these steps:
LI
UL
this time (or just manually type UL and /UL)This is tedious. Does anyone know of a built-in command, a plug-in, or a macro that will take selected lines, wrap each line with an LI tag and the selection with the UL tags in one go?
You can easily achieve this if you have the Emmet plugin installed. The feature that you're after is called "Wrap with abbreviation".
Steps needed:
It's also possible to do some further cool stuff using filters with this as well. Be sure to check out the Emmet docs.
If you are using a mac:
Also, one can select the text and press Ctrl+W and use ul>li*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With