Why my custom snippets don't work?


#1

I write these in snippet.cson:

'.source.js':
  'if, else if, else':
    'prefix': 'ieie'
    'body': 'A'
'second':
    'prefix': 'second'
    'body': 'aa'
'third':
    'prefix': 'third'
    'body': 'bb'

only ieie can work when press tab it pop up A,others not work like what I write.
Pls help me.


#2

CSON is an indentation-sensitive language. Because second and third are not at the same indentation level as if, else if, else, the snippets system doesn’t include them as snippets for JavaScript.