编辑 Atom 自动完成
Edit Atom's autocompete
有没有一种方法可以编辑 Atom 的自动完成功能,使其使用不同的属性自动完成?
目前我可以输入 'template' 并且它会自动完成
<template id=""></template>
与
相比,我更希望自动完成
<template name=""></template>
如果某处有文件,我可以编辑吗?
一种可能的解决方案是定义您自己的 snippet:
File
> Open your snippets
添加以下内容:
'.source.js':
'tmpl':
'prefix': 'Template Trigger'
'body': '<template name=""></template>'
您可能希望 customize the scope 满足您的要求。
有没有一种方法可以编辑 Atom 的自动完成功能,使其使用不同的属性自动完成?
目前我可以输入 'template' 并且它会自动完成
<template id=""></template>
与
相比,我更希望自动完成<template name=""></template>
如果某处有文件,我可以编辑吗?
一种可能的解决方案是定义您自己的 snippet:
File
> Open your snippets
添加以下内容:
'.source.js':
'tmpl':
'prefix': 'Template Trigger'
'body': '<template name=""></template>'
您可能希望 customize the scope 满足您的要求。