问题
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