Hmmm, That does not seem to work. Do I create a preference file in my custom bundle because that did't work. I found the preference file that you mentioned in various bundles, in Source and added the ( '<', '>' ) but again it doesn't autocomplete What am I missing? Thanks -------------- Sure. In the bundle editor, look for a Preference, probably called "Smart Typing Pairs" or something similar. It might look like this: { smartTypingPairs = ( ( '"', '"' ), ( '(', ')' ), ( '{', '}' ), ( '[', ']' ), ( '“', '”' ), ( "'", "'" ), ); } Basically, it's just a series of pairs. You can add ( "<", ">"), to the list and that should do it. On Jul 13, 2011, at 10:19 AM, John Relosa wrote: That works great thanks! Is there a way to autocomplete the < symbol? I can do it with the { so when I press "{" TM autocompletes it with the end } so it automatically becomes {}. How can I add that functionality to the "<" symbol so it automatically becomes <>. Thank you. ___________________________________________
Sorry, I failed to mention that you'll need to set the scope.
In the preference editor, fill in the bottom right text field, labeled "Scope Selector:" with the general scope of your language. If you don't know it, you can find it out by placing your cursor in a document and pressing Control-Shift-P. This will bring up a tooltip, with a list of scopes. You'll probably want the top one, which is the broadest scope for the current position.
Once you set the scope, you should see the angle bracket pair work.
+dru
On Jul 13, 2011, at 12:14 PM, John Relosa wrote:
Hmmm,
That does not seem to work. Do I create a preference file in my custom bundle because that did't work. I found the preference file that you mentioned in various bundles, in Source and added the ( '<', '>' ) but again it doesn't autocomplete
What am I missing?
Thanks
--------------
Sure. In the bundle editor, look for a Preference, probably called "Smart Typing Pairs" or something similar. It might look like this:
{ smartTypingPairs = ( ( '"', '"' ), ( '(', ')' ), ( '{', '}' ), ( '[', ']' ), ( '“', '”' ), ( "'", "'" ), ); }
Basically, it's just a series of pairs. You can add
( "<", ">"),
to the list and that should do it.
On Jul 13, 2011, at 10:19 AM, John Relosa wrote:
That works great thanks!
Is there a way to autocomplete the < symbol? I can do it with the { so when I press "{" TM autocompletes it with the end } so it automatically becomes {}. How can I add that functionality to the "<" symbol so it automatically becomes <>.
Thank you.
___________________________________________
_______________________________________________ textmate mailing list textmate@lists.macromates.commailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate