Sublime Text 3 - Emmet shortcut for HTML 5 not working.
Solution 1
type !
and then press Tab.
found the answer on cheatsheet
Solution 2
Text editor doesn't know what shortcut to expand until you save new file as *.html or change the syntax (bottom/right), because new document starts in plain text.
Solution 3
I guess that you are looking for something like Html Boilerplate. This package generates a full html5 structure just by typing
htmlboiler
and pressing TAB
EDIT: Just found the answer in the Emmet official cheatsheet; just type
!
And hit TAB (Yes, just the exclamation character).
Solution 4
You don't need an extension. Just either open an html file, save it as an html file, or hit ctrl + shift + P then type "html" and hit enter to select "Set Syntax: HTML"
Then, simply type "HTML" followed by either tab or ctrl+space.
Mospective
Updated on June 14, 2022Comments
-
Mospective almost 2 years
I have recently downloaded sublime text 3 and installed emmet. The issue that I am having is that when I write the short code for HTML 5 and press tab, it doesn't work. This method was used in sublime text 2 and it worked. Does anyone have any solutions to this issue?