Autocomplete Atom编辑器自定义自动完成/建议

Autocomplete Atom编辑器自定义自动完成/建议,autocomplete,code-snippets,atom-editor,Autocomplete,Code Snippets,Atom Editor,如何更改Atom中的自动完成,使input变为 <input type="text" placeholder="{cursor here}"> 而不是默认值 <input type="{'button'|cursor here}" name="name" value=""> 在GitHub Atom的术语中,您描述的自动完成被称为a。您可以通过重写Atom附带的包提供的输入代码段来更改这些内容 用户定义的代码段存储在Atom配置文件中,您可以通过转到文件->代码段

如何更改Atom中的自动完成,使
input
变为

<input type="text" placeholder="{cursor here}">

而不是默认值

<input type="{'button'|cursor here}" name="name" value="">

在GitHub Atom的术语中,您描述的自动完成被称为a。您可以通过重写Atom附带的包提供的输入代码段来更改这些内容

用户定义的代码段存储在Atom配置文件中,您可以通过转到
文件
->
代码段…
,访问该文件,这将在编辑器中打开该文件,然后您可以将以下内容粘贴到该文件的末尾

'.text.html':
“输入”:
“前缀”:“输入”
“正文”:“$0”
确保在将更新的代码段测试到选择了HTML作为其语言的文档之前保存该文件