autoclose-html
autoclose-html copied to clipboard
Not working with JSX by default
I love this package, thanks so much for building! I hope the below comment helps anyone else with the same issue:
I wasn't able to get auto close to work with JSX files until modifying the atom key map file to include:
'atom-text-editor': '>': 'autoclose-html:close-and-complete'
atom-text-editor[data-grammar~="jsx"]
would be more appropriate I think
Might this be related to the "no more grammars" commits from 0.22?
https://github.com/mattberkowitz/autoclose-html/commit/73cdb1292978c3b491ef5adc24bb108001aebce3
If we need to re-add each of the grammars by assigning a "new" keyboard shortcut that mirrors the default one I almost wonder if this is a superior solution to the grammar list from before 0.22…
I love this package, thanks so much for building! I hope the below comment helps anyone else with the same issue:
I wasn't able to get auto close to work with JSX files until modifying the atom key map file to include:
'atom-text-editor': '>': 'autoclose-html:close-and-complete'
Thanks, I was going crazy because I couldn't figure out why my tags wouldn't automatically close in JSX files anymore. I think this behaviour is really counter intuitive, at least as long as it's not documented or has a corresponding setting of some kind.