Q:

How to get file name while creating snippets (Live Templates)

I am creating a snippet for my templates in Meteor and the only thing left to be perfect would be to know the file name in which that snippet was called.
What I have: 
type: temp + tab

What I get:
 <template name="">

 </template>

What I want:
 <template name="">
   file_name.html
 </template>

A:

Proper name for "snippets" in WebStorm is Live Templates.
If you would check some official documentation you would notice the filename() function. 
Knowing that:
<template name="$END$">
    $FILE$
</template>

Now just click on "Edit Variables" button and use it there:

