
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:
System.out.println();
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.
[
](http://chocksaway.com/blog/wp-content/uploads/2015/12/Screen-Shot-2015-12-06-at-21.49.03.png)
In future, if I type “sop”, and press TAB, my System.out.println(); appears.
[
](http://chocksaway.com/blog/wp-content/uploads/2015/12/Screen-Shot-2015-12-06-at-21.49.53.png)