- SW, Version: ST3.0, 3143
- OS: Windows 8.1
details
I created a custom snippet and saved it to Packages/User. I defined a tab trigger for the snippet. I did NOT define a scope.
Test case
- new file created, unsaved: tab did not trigger
- test.txt file created, tab did not trigger
- test.bat file created, tab did trigger
- test.c file created, tab did trigger
Understandings and Doupts
I understand that tab trigger does not work on new created, unsaved files.
I understand that tab trigger works for several scopes when no scope is defined.
I beleave that tab trigger works for a certain top level scope only when no scope is defined. Is this correct?
Goals and further thoughts:
My goal is to create a snippet that works on any text file, regardless extension.
For this, I’d need to achieve anything conceptually similar to this:
- no scope defined
<scope>source.*,text.*</scope>
Can someone give me further hints on solving this issue, thank you.
Documents read: