- Open the desired file for editing and select a block of code to be surrounded.
- Press ⌥⌘J or ⌥⌘J⌥⌘J or ⌥⌘J⌥⌘J or ⌥⌘J^ ⌥ J, ⌃⌥J or ⌃⌥J^ ⌥ J, ⌃⌥J or ⌃⌥J, or choose on the main menu .
- In the pop-up menu, choose Emmet:

- Type the desired Emmet abbreviation, and press ⏎ or ⏎⏎ or ⏎⏎ or ⏎Enter, ⏎ or ⏎Enter, ^ M, ⏎, ⌃M, ⏎ or ⌃M.
Note the drop-down list to the right. Clicking the down arrow reveals a history list of the recently applied Emmet live templates:

Also mind the color indication. If you type a valid Emmet abbreviation, the background is green. However, when a non-existent abbreviation is entered, the background becomes red:
