Scarface
Scarface

Reputation: 3

My emmet snippet of atom is not working properly

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

Answers (1)

idleberg
idleberg

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

Related Questions