简体   繁体   中英

How do I use the > character in a Sublime Text 2 snippet's tabTrigger?

I'm writing snippets that require -> to be part of the tabTrigger. However, they seem to be ignored entirely. My list of triggers disappears after the hyphen character.

I know that $ can be added by escaping with a backslash, but that doesn't seem to work in this case.

It seems you can use > , instead of >.

My guess is those characters are defined as word separators. So, for the purpose of auto completion, there are no characters there to build the autocomplete (or snippet) list. That being said, the tab triggers still work fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM