facebook

[Closed]anything similar to live and file templates in idea?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #243282 Reply

    zapa
    Member

    just curious if this can be done with my Eclipse , I have been unable to find such a feature yet , but I could have missed it .

    In another IDE I was able to write a predefined string then press tab , and that would automaically produce some code for me in my file . It was a velocity based sistem , and it worked a bit like the Snippets feature I see in my Eclipse , only that it didn’t require clicking , and it was customizable .

    A similar thing was done for File Templates where you’d define your own template with velocity and then create a special , custom type of file .

    Any way I could do this with my Eclipse ?

    thanks

    #243287 Reply

    Scott Anderson
    Participant

    In another IDE I was able to write a predefined string then press tab , and that would automaically produce some code for me in my file

    Yep, you can configure that at Window > Preferences > Java > Editor > Templates.

    A similar thing was done for File Templates where you’d define your own template with velocity and then create a special , custom type of file .

    Don’t think that one is available as file types are contributed with wizards through extension points in Eclipse and it’s system isn’t Velocity based.

    #243290 Reply

    zapa
    Member

    i see , thank you very much . . .

    in fact at this point , i can setup some large file templates that could do the job of a file template just as easy

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed]anything similar to live and file templates in idea?

You must be logged in to post in the forum log in