(How) can i create code snippets? [message #64041] |
Wed, 02 January 2008 17:26 |
Eclipse User |
|
|
|
Originally posted by: romeo.cioaba.spotonearth.com
Hi,
Is there any way to create code snippets?
I like it a lot that i don't have to write all foreach or foreach with key
statements. I just type fo then Ctrl + Space and i can select "fore" or
"forek" snippets (or templates, not sure how you call them).
I'd like to create such snippets for large pieces of code that i use on a
regular basis. Is that possible?
Thanks,
Romeo Adrian Cioaba
|
|
|
Re: (How) can i create code snippets? [message #64088 is a reply to message #64041] |
Wed, 02 January 2008 22:38 |
Eclipse User |
|
|
|
Originally posted by: eclipsenews.20.epm.spamgourmet.com
Yep. In PDT they are called templates, see Prefs > PHP > Templates. You
can set up any a keyword and provide the code to substitute when you
type that keyword.
Romeo Adrian Cioaba wrote:
> Hi,
>
> Is there any way to create code snippets?
>
> I like it a lot that i don't have to write all foreach or foreach with
> key statements. I just type fo then Ctrl + Space and i can select "fore"
> or "forek" snippets (or templates, not sure how you call them).
>
> I'd like to create such snippets for large pieces of code that i use on
> a regular basis. Is that possible?
>
> Thanks,
> Romeo Adrian Cioaba
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03808 seconds