You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Hi all!
I've got some snippets used in different scops (<{tagName}></{tagName}> for both html and jsx for example), and I have to write them many times in snippets.cson for different scrops.
So is there a way to add a snippets programly with some atom api like atom.snippets.add(scope, snippets), so I can do
htmlSnippets='<tag></tag>':prefix:'t'body:""" <${1:tagName} $0></${1:tagName}>"""atom.snippets.add(scope,htmlSnippets) for scope in ['.text.html','.source.coffee']
Thanks!
The text was updated successfully, but these errors were encountered:
Hi all!
I've got some snippets used in different scops (
<{tagName}></{tagName}>
for both html and jsx for example), and I have to write them many times in snippets.cson for different scrops.So is there a way to add a snippets programly with some atom api like
atom.snippets.add(scope, snippets)
, so I can doThanks!
The text was updated successfully, but these errors were encountered: