My Snippet Only Expands After a Blank Space, Why?

Say you want a snippet for “-year-old” to expand right next to the number you type so that it looks like this “12-year-old,” but it only expands after a space, so that is looks like this “12 -year-old.”

  1. Click on the snippet group that snippet is in, you will see the Group Settings appear to the right.
  2. Set “Expand when:” to “Any character precedes abbreviation.”

That group was likely set to “Whitespace precedes abbreviation” so that the snippet would only expand after a blank space and not directly next to other characters.

Depending on your abbreviations, you may want to create a separate snippet group specifically for these snippets, and leave your other snippets in a group set to “Whitespace precedes abbreviation”

Technical Note: TextExpander only sees what you are typing, and cannot always notice the effects of particular keystrokes. For instance, in MacVIM, typing “i” while in navigation mode changes the context and meaning of subsequent keystrokes, but TextExpander cannot detect that, so if you type “iddate” your “ddate” snippet will not expand, unless it is in a group set to expand after “Any character precedes abbreviation”.

Not helpful Helpful