5
I’m using TextMate 1.5.10 on OS X Lion, and for some weird reason I don‘t get autocomplete for single quotes ('). Double quotes (") work fine.
Since I personally prefer to use single quotes whenever I code in JavaScript or PHP, that thing annoys me a little. And as far I have googled, TextMate is actually supposed to autoclose single quotes by default.
So why doesn’t this work for me and how do I force-enable this feature?
Obviously, if the preferences don't exist yet, you may create them using the
+
button. – slhck – 2011-07-25T12:02:46.897I am also confident that I was able to auto-complete single-quotes before my update to Lion, but alas, upon reading the OP's question, I tried it and it didn't work. Then, in reading this, I was able to add
( "'", "'" ),
to the first line of smartTypingPairs and it works perfectly again. Thanks, @slhck! – mkoistinen – 2011-07-25T12:32:41.477Great, thank you. Indeed, just like @mkoistinen, for some weird reason I didn’t have that last line highlighted in the screenshot. Added it, and it works. – Arnold – 2011-07-26T11:59:06.897