Sometimes I find myself writing repetitive code constructs without being able to extract common code due to Java syntax hmm... let's call them peculiarities. 'Sounds like a job for a live template', I think, and I simply create it. Here's how. The documentation has it too, but a good example never hurts.
Let's suppose you have read/write synchronization in your project, and from time to time you need to wrap a bunch of statements in, say, a read action. This involves putting them into a Runnable and giving the latter to some runReadAction method. Do you still do this manually? You don't need