sublime3 emmet插件 jsx的html内容tab自动补全无效?

我是按照这个配置的https://github.com/sergeche/emmet-sublime#tab-key-handler

阅读 9.1k
4 个回答

Ctrl + E 可以补全

set syntax 使用 babel

https://gist.github.com/jerryshew/3659091b82af3aae49df

// add to Preferences > Key Bindings - User
// see http://stackoverflow.com/a/26619524 for context

{ "keys": ["tab"], "command": "expand_abbreviation_by_tab",
  "context": [
    {
      "operand": "source.js", 
      "operator": "equal", 
      "match_all": true, 
      "key": "selector"
    },
    {   
      "key": "selection_empty", 
      "operator": "equal", 
      "operand": true,
      "match_all": true 
    }
  ]
},
{ "keys": ["tab"], "command": "next_field", "context":
  [
    { "key": "has_next_field", "operator": "equal", "operand": true }
  ]
}
推荐问题