Reputation: 3
I want to use the "Emmet" snippet of atom, but it is not working properly when I press tab after the tag name.
Code:
'atom-text-editor:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
but still when I apply this it is just printing simple tag like this: <html></html>
Upvotes: 0
Views: 99
Reputation: 12882
CoffeeScript (and CSON, CoffeeScript Object Notation) is an indentation-sensitive languages, so you need to make sure you're using the correct indentation. When you edit snippets.cson
and press Enter, the editor will indent the second line automatically.
In the end it should look like this:
'atom-text-editor:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
Upvotes: 1