Sublime Forum

How to automatically convert text to proper HTML format?

#1

Hello. I recently watched a video where the instructor merely typed .bgimage into Sublime Text, then somehow automatically converted it to:

<div class="bgimage">

How did he accomplish this? Is it a built-in keyboard shortcut, or did he record his own macro, or something else? Or might it have just witnessed video editing?

Thanks in advance.

0 Likes

#2

you can type div.bgimage and press Tab to accomplish this - it’s a built in completion in the HTML package

2 Likes

#3

OK great. Tested and works. Thanks for that.

0 Likes

#4

There’s a good chance he was using Emmet.

2 Likes