How to use sublime text vars in snippets?

34 Views Asked by At

I am trying to create snippet where must be displayed the name of the current file

I tried to do this:

<content><![CDATA[Hello, this is a $file_name]]></content>

But it does not work

1

There are 1 best solutions below

0
bek On BEST ANSWER

I found the answer. I did it like this:

<content><![CDATA[Hello, this is a $TM_FILENAME]]></content>