Intellij / Idea Live Templates

Intellij / IDEA use of Live Templates is nothing new.  But, in case you have never heard of them, this is how they work:

If you have code, or configuration, which you don’t want to repeat, use a Live Template to “template” what you don’t want to type in time-and-time again.

The example will be a humble:


Screen Shot 2015-12-06 at 21.47.53 Firstly highlight “what” you want to Template. Then select -> Tools -> Save as Live Template. I have given an abbreviation of “sop” (for System.out.println).  Press OK.

[Screen Shot 2015-12-06 at 21.49.03


In future, if I type “sop”, and press TAB, my System.out.println(); appears. Screen Shot 2015-12-06 at 21.49.38 [Screen Shot 2015-12-06 at 21.49.53


Author | Miles Davenport

Career programmer, who designs, assembles, fixes, and supports customers, software and systems.