Sublime Forum

Sublimetext3 Snippet, auto variable is not working

#1

Hello,

I’m struggling with TM_FULLNAME and TM_FILENAME, it’s not working.

My name and the filename of the files is not populated when I apply my snippet.

I tried $TM_FILENAME, TM_FILENAME, ${TM_FILENAME}…
please help.

Here is my code:

caca source.python
0 Likes

#2

I have this same problem with TM_FILENAME, did you ever find a solution?

A workaround that I found is to just use the global as a straight variable $TM_FILENAME
rather than inside a placeholder ${1:TM_FILENAME}

I suppose you would never want to change the filename so perhaps I just need to write the author of the tutorial I was reading and tell them their example does not work the way they are using it.

0 Likes