What's wrong with my Atom Editor Snippet?

南笙酒味 提交于 2019-12-11 10:12:38

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/35121599/whats-wrong-with-my-atom-editor-snippet

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!