Trying to create a snippet in sublime Text 4 where the tab trigger is .print
eg: a.print
results in print(a)
The current code for the snippet is
<snippet>
<content><![CDATA[print($TM_CURRENT_LINE)]]></content>
<tabTrigger>.print</tabTrigger> -->
<scope>source.python</scope> -->
</snippet>
but results in aprint(a)
Snippets can only add a few code to the existing one, replacing the trigger. It cannot remove any current line. For that, I suggest you use plugins.