Search code examples
sublimetext3sublimetext2sublimetextcode-snippetssublimetext-snippet

How to use sublime text vars in snippets?


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


Solution

  • I found the answer. I did it like this:

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