Hello, is there any automatic 'end of line' thing in the smart typing feature? I feel as ctrl+e, or cmd+right, or retyping of ") is breaking my hyper-lazy behaviour.
Thanks :) max
On 26/10/2005, at 18.54, Max wrote:
is there any automatic 'end of line' thing in the smart typing feature? I feel as ctrl+e, or cmd+right, or retyping of ") is breaking my hyper-lazy behaviour.
Cmd-return does EOL + LF. Cmd-shift-return does EOL + ; + LF (for those languages which need it), and actually EOL + . + LF in text.
See the Source and Text bundles for these macros.
Cmd-return does EOL + LF. Cmd-shift-return does EOL + ; + LF (for those languages which need it), and actually EOL + . + LF in text.
See the Source and Text bundles for these macros.
Yes I know... in case I'd write something like
if (($_REQUEST["foo"]) and ($_REQUEST["bar"])) {
I think that it could be interesting to enable the 'tab' key putting the cursor at the end of line, if no $0, $1 in the snippet is specified. What do you think? Just an alternative to the "if" snippet for users - like me - who don't use it. Oh yeah, maybe I should stop doing gibberish and learn snippets. ;)
m.
On 26/10/2005, at 19.53, Max wrote:
Cmd-return does EOL + LF. [...]
Yes I know... in case I'd write something like
if (($_REQUEST["foo"]) and ($_REQUEST["bar"])) {
I think that it could be interesting to enable the 'tab' key putting the cursor at the end of line, if no $0, $1 in the snippet is specified. What do you think?
I have no idea what this is about. Is this a specific PHP snippet? What is the typing pattern of the above?
Oh yeah, maybe I should stop doing gibberish and learn snippets. ;)
Yes, that is sort of the point with snippets: users write what they need :) I can't recall if I mentioned it, but initially I actually did not plan to ship TextMate with any snippets, thinking that users are anyway to different to share the same set of snippets, which is evident e.g. in the mixed obj-c snippets from Chris and me, who use different spacing and *-binding conventions…