如何在Atom中进行自定义自动完成?

Dil*_*har 2 atom-editor

我们如何在atom中为PHP-Language创建自定义代码段

例:

如果我写了类,那么它会显示我的自定义代码段.

Hum*_*01d 9

在您的代码段文件中制作一个代码段!

首先,打开您的代码段文件.我cmd-shift-p用来搜索所有操作,然后键入snippets然后选择Application: Open Your Snippets打开代码段文件.然后,您可以使用该snip代码段创建一个新代码段!例如:

'.text.html.php':
  'Class':
    'prefix': 'class'
    'body': 'Your template'
Run Code Online (Sandbox Code Playgroud)

Atom使用cson片段和其他编辑器文件的格式.(CSON是CoffeeScript JSON)