Sublime 支持JSX,以及Emmet Tab

  1. 安装 JSX 插件
  2. preferences-key bindings 中添加如下规则:
[
    {
        "keys": ["tab"], 
        "command": "expand_abbreviation_by_tab", 
        "context": [
             {
               "operand": "source.js.jsx", 
                "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 }
        ]
    }
]

你可能感兴趣的:(Sublime 支持JSX,以及Emmet Tab)