Hi
the following situation is rather common when
typing in LaTeX:
- in order to insert a formula, I type $ which
produces a couple $$ with cursor in the middle - then I start typing the formula. At some point
I need an open-end bracket like {}, so I type {
but the smart pairing in ST2 only produces { since
immediately to the right of the cursor is the
closing $
For a contrast, in TextMate the behaviour of smart brackets
is correct: if I type { immediately to the left of a closing $,
the pair {} is correctly inserted.
Which is the right way to modify this behaviour? can it be done
by adding some preference inside my User folder? alternatively,
would it be reasonable to modify the LaTeX package to address
this?
Thanks
Piero