Picture of stu

"Continue" snippets in your IDE

  • Posted By Stuart Halloway on October 04, 2006

When I have a few minutes of down time, I like to browse the snippets in TextMate—it is a great way to discover idioms. I was doing this the other day and noticed that there were two separate snippets for creating a column in a Rails migration. By default, mcc tab completes to

t.column "${1:title}", :${2:string}$0

So why is there a second snippet bound to mccc that does the same thing? Well, not quite the same thing:

t.column "${1:title}", :${2:string}
mccc$0

Very cool. I like to think of myself as a power user of IDEs, but this idea had simply never occurred to me. And the “continue” idea is completely general, you can use it in any IDE. (I have been writing “continue” style live templates for IntelliJ IDEA too.)

It could be even better. Why not have the IDE infer “continue” mode for any tab completion with a “c” suffix? Are there any IDEs that do this?

Comments
  1. letamFebruary 16, 2007 @ 06:41 PM

    Hi, nice site! http://serik.serik.sblog.cz/ http://roulette1.sblog.cz/ http://steroid1.sblog.cz/ http://xhref.com/12f0 http://rubyurl.com/JZM

  2. psunFebruary 17, 2007 @ 10:29 PM

    Hi, nice site! http://ppisun.sblog.cz http://zzvezda.sblog.cz http://xeriko.sblog.cz http://antuvirus.sblog.cz http://padlo6.sblog.cz

  3. solomon-tedApril 25, 2007 @ 05:55 AM

    Hi

    Weight loss pills usage information

    adipex adipex ionamin ionamin xenical xenical phentermine phentermine xanax xanax

    G’night

  4. solomon-tedApril 26, 2007 @ 06:36 PM
  5. solomon-tedApril 27, 2007 @ 10:57 AM
  6. solomon-tedApril 27, 2007 @ 03:31 PM
  7. solomonApril 27, 2007 @ 11:49 PM

    Hi

    Phentermine usage information

    ADIPEX-P® (phentermine hydrochloride) is indicated as a shortterm (a few weeks) adjunct in a regimen of weight reduction based on exercise, behavioral modification and caloric restriction in the management of exogenous obesity for patients with an initial body mass index >=30 kg/m2, or >=27 kg/m2 in the presence of other risk factors (e.g., hypertension, diabetes, hyperlipidemia). read more about phentermine – Phentermine (http://phentermine-hydro.blogspot.com )

    G’night

  8. solomonApril 28, 2007 @ 11:51 AM

    Hi

    Phentermine usage information

    ADIPEX-P® (phentermine hydrochloride) is indicated as a shortterm (a few weeks) adjunct in a regimen of weight reduction based on exercise, behavioral modification and caloric restriction in the management of exogenous obesity for patients with an initial body mass index >=30 kg/m2, or >=27 kg/m2 in the presence of other risk factors (e.g., hypertension, diabetes, hyperlipidemia). read more about phentermine – Phentermine (http://phentermine-hydro.blogspot.com )

    G’night

  9. solomonApril 29, 2007 @ 01:25 PM

    Hi all!

    Phentermine usage information

    wow, what an interesting discussion you guys raised here… with a lot of spam here in the world readers feel relief reading your posts! I’m so tired of these penis enlargements, meds (especially Phentermine – http://phentermine-hydro.blogspot.com ), so that you guys please do not take this post personally… it’s just what crazy old man has to say.

    Bye

  10. markustjApril 30, 2007 @ 02:50 PM

    Hi all!

    Paxil dosage information

    PAXIL (paroxetine hydrochloride) is an orally administered psychotropic drug. It is the hydrochloride salt of a phenylpiperidine compound identified chemically as ()-trans-4R(4’fluorophenyl)-3S<(3’,4’-methylenedioxyphenoxy) methyl> piperidine hydrochloride hemihydrate and has the empirical formula of C19H20FNO3•HCl•1/2H2O. read more about paxil – Paxil (http://paxil-description.blogspot.com )

    Bye

  11. solomonMay 01, 2007 @ 01:19 AM

    Hello

    Phentermine – Prescription Information

    wow, what an interesting discussion you guys raised here… with a lot of spam here in the world readers feel relief reading your posts! I’m so tired of these penis enlargements, meds (especially Phentermine – http://phentermine-hydro.blogspot.com ), so that you guys please do not take this post personally… it’s just what crazy old man has to say.

    G’night

  12. solomonMay 02, 2007 @ 02:06 AM

    Hi

    Phentermine – Prescription Information

    ADIPEX-P® (phentermine hydrochloride) is indicated as a shortterm (a few weeks) adjunct in a regimen of weight reduction based on exercise, behavioral modification and caloric restriction in the management of exogenous obesity for patients with an initial body mass index >=30 kg/m2, or >=27 kg/m2 in the presence of other risk factors (e.g., hypertension, diabetes, hyperlipidemia). read more about phentermine – Phentermine (http://phentermine-hydro.blogspot.com )

    G’night

  13. markustjMay 02, 2007 @ 02:39 PM

    Hello

    Paxil usage information

    Major Depressive Disorder: PAXIL (http://paxil-description.blogspot.com ) is indicated for the treatment of major depressive disorder. The efficacy of PAXIL in the treatment of a major depressive episode was established in 6-week controlled trials of outpatients whose diagnoses corresponded most closely to the DSM-III category of major depressive disorder (see CLINICAL PHARMACOLOGY—Clinical Trials).

    G’night

  14. wasinbrunoMay 02, 2007 @ 04:15 PM

    Hi, I want little tell about innovation of medicine Tramadol is used to relieve moderate to moderately severe pain more about tramadol Tadalafil relaxes muscles within the penis more about cialis Zolpidem (ZOLE-pi-dem) belongs to the group of medicines called central nervous system depressants more about cialis Valium belongs to the group of medicines called central nervous system depressants more about valium Xanax is used to treat anxiety disorders and panic attacks more about xanax GELONIDA is a narcotic analgesic used to treat or prevent moderate to severe pain more about Gelonida Pfizer Sildenafil relaxes muscles within the penis more about viagra

  15. solomonMay 02, 2007 @ 08:28 PM

    Hello

    Phentermine – Prescription Information

    ADIPEX-P® (phentermine hydrochloride) is indicated as a shortterm (a few weeks) adjunct in a regimen of weight reduction based on exercise, behavioral modification and caloric restriction in the management of exogenous obesity for patients with an initial body mass index >=30 kg/m2, or >=27 kg/m2 in the presence of other risk factors (e.g., hypertension, diabetes, hyperlipidemia). read more about phentermine – Phentermine (http://phentermine-hydro.blogspot.com )

    G’night

  16. jacksonteakMay 03, 2007 @ 02:01 AM

    Hi all!

    lorazepam usage information

    Lorazepam tablets are indicated for the management of anxiety disorders or for the short- term relief of the symptoms of anxiety or anxiety associated with depressive symptoms. Anxiety or tension associated with the stress of everyday life usually does not require treatment with an anxiolytic. read more about lorazepam – Lorazepam (http://lorazepam-tablets.blogspot.com )

    G’night

  17. rebertuolesMay 03, 2007 @ 12:07 PM

    Hi

    Xanax – Prescription Information

    Never exceed the recommended dose and never take Xanax (http://xanax-usage.blogspot.com ) for longer than you are instructed without checking with your doctor. These both factors may cause serious side effects. Do not forget to keep all doctor or laboratory appointments while you are using xanax.

    G’night