Ben
Ben

Reputation: 3025

What's wrong with my Atom Editor Snippet?

I'm getting to know Atom. I tried to make a snippet with the following format:

 'text.html.basic':
  'Comment Class':
    'prefix': '<.'
    'body': '<!-- .$1 -->'

But when I type <. then the tab key, nothing happens. Why not?

Upvotes: 1

Views: 95

Answers (1)

phw
phw

Reputation: 430

Atom currently only supports alphanumeric characters for snippet prefixes, see the open issue at https://github.com/atom/autocomplete-snippets/issues/56

Try using a prefix such as "comment" and it should work. I unfortunately don't know a better workaround.

Upvotes: 1

Related Questions