Sublime Text 3 Emmet triggering conflict?

↘锁芯ラ 提交于 2019-12-23 03:01:52

问题


I just started using Sublime Text 3 beta. Love it so much.

And I love using Emmet while coding.

But there's one thing annoys me that whenever I am editing CSS for example, code suggest interrupts so my trigger key(which is Tab key) won't work. (I have to hit Enter key instead).

Does anyone know how to fix this problem?


回答1:


I found a solution

Changing a line in key binding file from:

{ "keys": ["enter"], "command": "commit_completion", "context":

to:

{ "keys": ["tab"], "command": "commit_completion", "context":

that worked for me.

I go for this for the time being. I still want other suggestion though.

Thanx.




回答2:


The third version is not yet stable (only beta). You can report the problem here




回答3:


Emmet parses abbreviations in real time but Sublime Text does not provide API to correctly override native snippets. So there are might be some quirks when expanding abbreviations by Tab key.

You may want to disable disable_tab_abbreviations_on_auto_complete preference to make Tab key exclusive for Emmet: https://github.com/sergeche/emmet-sublime/blob/master/Preferences.sublime-settings#L29

But you will not be able to use native snippets in HTML and CSS anymore.



来源:https://stackoverflow.com/questions/23196983/sublime-text-3-emmet-triggering-conflict

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