sublime text 3 html autocompletion not working correctly

那年仲夏 提交于 2019-12-19 10:19:22

问题


I am trying to use sublimetext3 for editing html.

If I do

ul tab, then it generates <ul></ul>

if I do ul.temp tab, then it generates <ul class="temp"></ul>

however, when I am trying ul>li.temp tab, it is generating ul><li class="temp"></li>

What I am expecting to see is <ul><li class="temp"></li></ul>

I have package control. What am I missing in getting this functionality?


回答1:


Note: Moved to an answer at the request of the original poster.

Perhaps the behavior you are looking for comes from the Emmet plugin




回答2:


What you are describing it the expected behavior for Sublime Text.

The functionality that you are looking for comes from Emmet as skuroda said. Just install it using Package Control and you should be good to go.



来源:https://stackoverflow.com/questions/17796617/sublime-text-3-html-autocompletion-not-working-correctly

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