Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 846125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:33:52+00:00 2026-05-15T06:33:52+00:00

One particular problem I was having was using ${word_selection} in an Eclipse PDT template.

  • 0

One particular problem I was having was using ${word_selection} in an Eclipse PDT template.

I was recently trying to use some code templates with Eclipse PDT 2.1 to speed up some common tasks. We use a lot of getters/setters, so I wrote the following template.

function get${word_selection}() {
return $$this->getData('${word_selection}');
}

function set${word_selection}($$${word_selection}) {
$$this->setData('${word_selection}', $$${word_selection});
}

I named the template “getset” and the only way I know to use the Code Assist is to type: “getset” then hit my code assist keys (I have it set to Esc, but I think the default was Ctrl+Space). The problem is, this doesn’t actually let me select a word to be used by the ${word_selection}.

how do I type in my template name, hit the key combo, and have a word selected all at the same time?

I also want to know what kinds of templates people have set up and any other tips for using templates to speed of programming.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:33:53+00:00Added an answer on May 15, 2026 at 6:33 am

    Look at this link : http://2tbsp.com/node/104
    It describes two things : pdt code templates and code snippets.

    how do I type in my template name, hit the key combo, and have a word selected all at the same time?

    I think this cannot be achieved with code templates, but with code snippets. Personnally I do not use them at all, but I might start 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 535k
  • Answers 535k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I suggest using a ServletContextListener for this. Write a custom… May 17, 2026 at 1:01 am
  • Editorial Team
    Editorial Team added an answer It's perfectly good, current syntax, and expresses a list of… May 17, 2026 at 1:01 am
  • Editorial Team
    Editorial Team added an answer Looks like the solution was to set RailsBaseURI to the… May 17, 2026 at 1:01 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm creating a blog engine as a learning exercise and one particular problem has
I am having a problem with one database on my SQL Server 2005 production
I'm trying to setup some code to print to different trays on a photo
I am trying to get a particular search to work and it is proving
I need some information about localization. I am using .net 2.0 with C# 2.0
I am having problems creating WCF client proxy for service code like in this
I was having problems adding objects to one of my core data objects that
For my project I am using the integrated Visual Studio unit-testing framework but I
I'm working on an ASP.NET WebForms CMS application, and having a bit of trouble
We have a simple file browser on our intranet, built using ASP/vbscript. The files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.