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

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

阅读 8.9k
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 }
  ]
}
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏