Skip to content

Instantly share code, notes, and snippets.

@jubalm
Last active June 6, 2016 00:20
Show Gist options
  • Save jubalm/64ce3ed85a5cd55d8ab9b7470cafe571 to your computer and use it in GitHub Desktop.
Save jubalm/64ce3ed85a5cd55d8ab9b7470cafe571 to your computer and use it in GitHub Desktop.
Enable Emmet Tab Completion in React (JSX)

Sublime Text 3 - Enable Emmet Tab Completion in React (JSX)

Instruction

Simply open your key binding settings Preferences > Key Bindings — User and add the snippet to your settings array

Reference

http://stackoverflow.com/a/31767887/1072776

[
// ... existing config
{ "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" }
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment