The $TM_FILENAME snippet variable
Use $TM_FILENAME in snippets to insert the current file’s name. Use $TM_LINE_NUMBER for the current line number
VS Code includes many additional snippet vars. You can use them with snippet transforms too!
Details: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax