问题
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?
回答1:
type !
and then press Tab.
found the answer on cheatsheet
回答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.
回答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).
回答4:
@ayek is correct, all you need to do is set the document type to HTML; once you do, you can then type "html" and hit tab. Good luck, and happy coding. -KW
来源:https://stackoverflow.com/questions/33635826/sublime-text-3-emmet-shortcut-for-html-5-not-working