How to use // (2 slashes) as snippet prefix?


#1

Here is example of my snippet:
’.source.css’:
‘CSS Comment’:
‘prefix’: ‘comment’
‘body’: ‘/* [{1:Comment text}]\n------------------------------------------------------------ */\n{2}’

So, after typing // in *.css files it dose not working.
How to fix?


#2

It doesn’t work because you don’t have your snippet set up for //. The prefix is what you type, so if you type “comment” and then press tab, you’ll get your body inserted.