Code snippets

I use jedit as my ruby editor and I recently decided to give radrails a
try so I can take advantage of the cvs/subversion integration plugins.

I’m used to using code snippets in jedit so I can quickly insert common
code structures without having to type them in by hand each and every
time

  • much like the feature seen in TextMate.

Now, I’ve searched high and low in the settings dialog and can find
something called templates, but I’m not sure that’s what I’m looking
for…or is it?? If it is, how do I get it to insert that template. I
tried to make my own and couldn’t figure out how to trigger it…am I an
idiot? :slight_smile:

If templates are not what I’m looking for, is there a way to do the
snippets as I described above?

Thanks,
David

On 7/16/06, David M [email protected] wrote:

tried to make my own and couldn’t figure out how to trigger it…am I an
idiot? :slight_smile:

If templates are not what I’m looking for, is there a way to do the
snippets as I described above?

I haven’t tried this, because I don’t have a copy of RadRails handy.
However, it’s based on Eclipse so it might be the same thing.

To activate a template you start typing the name of template and then
hit control-space. It will bring up a menu with all of the possible
completions for what you’ve started typing. Once you select one it
will apply the template.

– James

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs