Sublime Text 3 - Emmet shortcut for HTML 5 not working.

大兔子大兔子 提交于 2020-01-13 08:55:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!