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:
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.
In future, if I type “sop”, and press TAB, my System.out.println(); appears. [