Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » (How) can i create code snippets?
(How) can i create code snippets? [message #64041] Wed, 02 January 2008 17:26 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
>
Re: (How) can i create code snippets? [message #64107 is a reply to message #64088] Thu, 03 January 2008 00:13 Go to previous message
Eclipse UserFriend
Originally posted by: romeo.cioaba.spotonearth.com

Tom,

Thanks a lot! This is what i was looking for :)

Regards,
Romeo
Previous Topic:Just a suggestion. . .
Next Topic:couple of feature requests: file search
Goto Forum:
  


Current Time: Sat Feb 04 03:47:04 GMT 2023

Powered by FUDForum. Page generated in 0.84873 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top