本文介绍了我的Atom编辑器片段有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我逐渐了解Atom.我尝试制作以下格式的代码段:
I'm getting to know Atom. I tried to make a snippet with the following format:
'text.html.basic':
'Comment Class':
'prefix': '<.'
'body': '<!-- .$1 -->'
但是当我键入<.
然后按tab
键时,什么也没有发生.为什么不呢?
But when I type <.
then the tab
key, nothing happens. Why not?
推荐答案
Atom当前仅支持代码段前缀的字母数字字符,请参见 https://github.com/atom/autocomplete-snippets/issues/56
Atom currently only supports alphanumeric characters for snippet prefixes, see the open issue at https://github.com/atom/autocomplete-snippets/issues/56
尝试使用诸如"comment"之类的前缀,它应该可以工作.不幸的是,我不知道有更好的解决方法.
Try using a prefix such as "comment" and it should work. I unfortunately don't know a better workaround.
这篇关于我的Atom编辑器片段有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!