In April 2015, Emmet added jsx support , but by default it does not work. Well, to my surprise, it really worked with the shortcut control + E , but I wanted to use the TAB key to expand. Following the official instructions helped.
Basically, I had to insert the following inside the user keyword binding file ( Preferences > Key Bindings — User ):
{ "keys": ["tab"], "command": "expand_abbreviation_by_tab", "context": [ { "operand": "source.js", "operator": "equal", "match_all": true, "key": "selector" }, { "match_all": true, "key": "selection_empty" }, { "operator": "equal", "operand": false, "match_all": true, "key": "has_next_field" }, { "operand": false, "operator": "equal", "match_all": true, "key": "auto_complete_visible" }, { "match_all": true, "key": "is_abbreviation" } ] }
This code is without all comments and with the correct SCOPE_SELECTOR in place.
rafaelbiten Aug 02 '15 at 1:49 on 2015-08-02 01:49
source share