How to modify an existing snippet?


#1

How to modify some of the built-in snippets on ATOM. Like html “form” snippet, i like to remove form_id property from it.


#2

okay, i found it! it goes under this path ‘/opt/atom/resources/app/node_modules/language-html/snippets’.


#3

Modifying that file will likely get overwritten when the language-html package gets updated. If you want to set a snippet for yourself, just modify your snippets.cson file. Find “Open your Snippets” in the Command Palette to open the file or open ~/.atom/snippets.cson.


Use a custom snippet over a builtin one?
#4

Thank you, this was helpful.


#5

Closing this topic in favor of this more detailed one:


#6