Emmet plugin's expansion doesn't work for Sublime Text 3

draney picture draney · Aug 23, 2015 · Viewed 8.8k times · Source

I successfully installed Emmet via Package Control.

  • When I type ul and press Tab, I get <ul></ul>.
  • When I type ul.class and press Tab, I get ul.body_class but I want it to generate <ul class="class"></ul>.

What am I doing wrong?

I have read posts saying to try Ctl+E instead of Tab as the trigger key, but that doesn't do anything.

Answer

Saad picture Saad · Aug 24, 2015

Try using Ctrl+Space instead. If that doesn't work, you can try changing the keybinding by putting the following in your User key bindings file which can be found by doing Preferences -> Key Bindings — User:

[
    {"keys": ["tab"], "args": {"action": "expand_abbreviation"}, "command": "run_emmet_action", "context": [{"key": "emmet_action_enabled.expand_abbreviation"}]}
]

and then just change "tab" to whatever keybinding you want. Check to see if that works.