Skip to content

Instantly share code, notes, and snippets.

@m-antoni
Created November 23, 2019 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m-antoni/93f32154479c6df59df4647e40389d9d to your computer and use it in GitHub Desktop.
Save m-antoni/93f32154479c6df59df4647e40389d9d to your computer and use it in GitHub Desktop.
How to enable Emmet with jsx files in Sublime Text 3

How to enable Emmet with jsx files in Sublime Text 3

  • First is to Install the Package Emmet here

  • Next is Go to Preferences > Package Settings > Emmet > Key Bindings-User

  • Finally Paste the following code.


{
  "keys": ["tab"], 
  "command": "expand_abbreviation_by_tab", 
  "context": [
    {
      "operand": "source.js, text.html", 
      "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