Closed geraintwhite closed 9 years ago
Why do you want to create two snippets with same tabtrigger?
Not the same tab trigger, but so they both show up in the autcomplete list.
But then why to you set same tabTrigger on both of them?
Try using name instead
name assignment
scope maze
-> ${1}= ${2}
name if
scope maze
-> IF ${2:**} THEN %${3:L} ELSE %${4:R}
https://github.com/ajaxorg/ace/blob/master/lib/ace/ext/language_tools.js#L60
Will they both show up in autocomplete for >
then?
Not showing up in the auto-complete menu is to do with #2533.
Closing because it is not logical to have the same tabTrigger
and setting the name
parameter should get them to both show up.
If I have two snippets in my mode's
.snippets
file like so:Pressing tab after typing
>
auto-completes to the second snippet which is understandable. The problem is that the auto-complete list (ctrl-space) only shows the second snippet.