20060201 Wednesday February 01, 2006

Want to be more productive with IDEA? If you want to be more productive with IDEA, Patrick Lightbody has a good suggestion in IDEA Live Templates: more powerful than you think. Now where's the list of the built-in live templates? Does Eclipse have a similar feature? Posted in Java at Feb 01 2006, 02:45:15 PM MST 4 Comments

Comments:

> Now where's the list of the built-in live templates?
Settings -> Live Templates
Too simple? Have I misunderstood the question?

Posted by pic on February 01, 2006 at 05:32 PM MST #

> Does Eclipse have a similar feature?
Window -> Preferences -> Java -> Editor -> Templates
You use them with CTRL+space as normal completion, so you don't have to remember the tab key :-)

Posted by pic on February 01, 2006 at 06:07 PM MST #

Eclipse webtools added a lot more template support. You can now ctrl-space in xml, html, css etc., The java feature has been around for several releases.

Posted by skroah on February 02, 2006 at 06:28 AM MST #

I don't think Eclipse's live templates are as powerful as IDEA. The expressions that you can enter are much simpler. For example, you can't indicate what package a type should come from. If I use the "for" template to insert an iteration, I always have to import the Iterator. Of course, CTRL+SHIFT+O makes that easy. It certainly doesn't seem possible in Eclipse to indicate that a proposed value is assignable from a particular class, like the example with IDEA shows.

Posted by Tim Morrow on February 02, 2006 at 06:56 PM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« January 2009
SunMonTueWedThuFriSat
    
1
2
3
5
6
7
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today

Recent Entries

Tag Cloud