Community
Participate
Working Groups
When someone first said "live templates" in the context of IDEA to me, I thought they would be something interesting (defined below), but it turned out they weren't. When editing Java code, we all know there is some boilerplate, e.g.: new Thread(new Runnable(){public void run(){callMethod();}}).start(); is considerably larger than the intended (non-Java): new Thread(callMethod();}.start(); I think it would be possible, and useful, for Eclipse to provide a means of collapsing certain boilerplate code, such as the above, in a similar way to the way that code folding works.
Bug 60929 would already help here.
(In reply to comment #1) > Bug 60929 would already help here. > In the comments on Bug 60929, R.J.Lorimer links to a plugin he wrote. From that page: "Due to limitations in the current Eclipse API for code folding, lines that are shared by more than one fold cannot be split down the middle (in other words, folds are line-by-line, not character-by-character)" That might make this impossible, or at least hard, e.g. for cases like: doTheseTwoThings(new Runnable(){public void run(){x();}},new Runnable(){public void run(){y();}}); ..to be collapsed to: doTheseTwoThings({x();},{y();});
Get rid of deprecated state.