Hi,
This is my first post.
When using TM the auto bracket closing feature is great but I wonder if it's possible to change it's behaviour slightly.
What I get currently: function {
}
What I would like: function {
}
I appreciate that hitting return after typing 'function' would achieve me this but is there a way of TM taking care of this?
On 27 Oct 2011, at 12:03, ShaunB wrote:
[…] I appreciate that hitting return after typing 'function' would achieve me this but is there a way of TM taking care of this?
You can record a macro that does “return” followed by “{” and save that with a key equivalent of ”{”, effectively changing the behavior of inserting an open brace. But I think this will clash in some places — you can use scoping to narrow where “{” should be overloaded, but I think your desired behavior is too fuzzy to really be addressed.
You can use snippets. Check how they works - almost any bundle have them. I think this is better than change auto bracket logic....
-- Alexey
On Oct 27, 2011, at 14:03, ShaunB wrote:
Hi,
This is my first post.
When using TM the auto bracket closing feature is great but I wonder if it's possible to change it's behaviour slightly.
What I get currently: function {
}
What I would like: function {
}
I appreciate that hitting return after typing 'function' would achieve me this but is there a way of TM taking care of this? -- View this message in context: http://old.nabble.com/Backet-autocomplete-tp32730304p32730304.html Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate