Consider using Live Templates .
For Java IntelliJ IDEA there is already a soutv template that will generate
System.out.println("var=" + var);
after pressing Tab .
You can define your own registration templates through your favorite journal structure.
source share