I’ve been exploring Atom today, and so far I like it a lot.
However, one problem that I found and cannot find an answer too, is with adding multiple snippets to snippets.cson
For context, this is what my snippet file looks like currently.
'.source.batchfile':
'Error check':
'prefix': 'error'
'body': """
if errorlevel 1 (
type nul
echo Faiure! Detailed above
pause
) else (
echo Success
)
echo.
"""
'.source.batchfile':
'Snippet Name':
'prefix': 'hello'
'body': 'Hello World!'
The problem is that only the second snippet (prefix “hello”) is usable. The previous one (prefix “error”) used to work, but as soon as I added “hello” it stopped working. By this I mean that I was no longer able to call it, and when pressing ALT+SHIFT+S it is no longer on the list of available and usable snippets.
Im pretty sure this is a user error and I am doing something wrong, but I cannot figure it out.
Help?
Thanks!