Autocomplete templates list


#1

Is there a list of autocomplete features somewhere? I am referring to stuff like when you type html and you get the generic html page with title and so on…


#2

Are you referring to snippets?
http://flight-manual.atom.io/using-atom/sections/snippets/

If you wish to know which snippets are available for a grammar (language), look at
Custom snippets are not working, but it did before

Else could you expand on what you mean when saying:


#3

No. I’m talking about when you write “html” and press tab you get a template.

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        
    </body>
</html>

I am interested what other templates are there.


#4

Hi.

The information I have given you does apply.
In Atom snippets are what you call templates.
What makes it confusing is that snippets are delivered to us by the autocomplete feature.

These can be created with the grammar (language) and you can create your own, linked to a grammar.

The one you refer to specifically html can be seen in the lanuage-html project:
https://github.com/atom/language-html/blob/master/snippets/language-html.cson/#L160

Also you will be able to see all the templates available to you. The more convenient way is to follow the previous link to a post that explains how to trigger to see all the templates.

The link to the manual gives ideas on how to make your own templates.

Helpful?


#5

Thank you!